diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-14 19:08:42 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-14 19:08:42 +0100 |
| commit | fdd846cd67def08f04cc616530adc144fc5435d7 (patch) | |
| tree | ba6a7692e236e50b4dfa40a90d1e653406e422f2 /apt-pkg/deb/deblistparser.cc | |
| parent | caf668388f2be7546989c97ab19ec4caeda73c92 (diff) | |
(+=)+= -> append().append()
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
| -rw-r--r-- | apt-pkg/deb/deblistparser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 3f37d2134..c9e31c645 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -846,7 +846,7 @@ bool debListParser::ParseDepends(pkgCache::VerIterator &Ver, // … but this is probably the best thing to do anyway if (Package.substr(found + 1) == "native") { - std::string const Pkg = (std::string{Package.substr(0, found)} += ':') += Ver.Cache()->NativeArch(); + std::string const Pkg = std::string{Package, 0, found}.append(":").append(Ver.Cache()->NativeArch()); if (NewDepends(Ver, Pkg, "any", Version, Op | pkgCache::Dep::ArchSpecific, Type) == false) return false; } |
