diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:41:13 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:41:13 +0000 |
| commit | fbde7ea4ce304a30e155a2bd9d014d196abbb496 (patch) | |
| tree | de51c6f3ce74d0b7fd1ddacd0812cd1cbe116c14 /apt-private/private-install.cc | |
| parent | 5b649fb72ecdced056fb3daab02e88933cc7a32a (diff) | |
| parent | ef70431f02e2ec13ecedab7ac342574e52d1877b (diff) | |
Merge branch 'push-to-emplace-C++11' into 'main'
apt: push to emplace C++11 if possible
See merge request apt-team/apt!566
Diffstat (limited to 'apt-private/private-install.cc')
| -rw-r--r-- | apt-private/private-install.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index 33c529712..7b3e6eee2 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -860,10 +860,10 @@ bool DoCacheManipulationFromCommandLine(CommandLine &CmdL, std::vector<PseudoPkg Cache->MarkAndSweep(); std::list<APT::VersionSet::Modifier> mods; - mods.push_back(APT::VersionSet::Modifier(MOD_INSTALL, "+", - APT::VersionSet::Modifier::POSTFIX, APT::CacheSetHelper::CANDIDATE)); - mods.push_back(APT::VersionSet::Modifier(MOD_REMOVE, "-", - APT::VersionSet::Modifier::POSTFIX, APT::CacheSetHelper::NEWEST)); + mods.emplace_back(MOD_INSTALL, "+", + APT::VersionSet::Modifier::POSTFIX, APT::CacheSetHelper::CANDIDATE); + mods.emplace_back(MOD_REMOVE, "-", + APT::VersionSet::Modifier::POSTFIX, APT::CacheSetHelper::NEWEST); CacheSetHelperAPTGet helper(c0out); verset = APT::VersionVector::GroupedFromCommandLine(Cache, CmdL.FileList + 1, mods, fallback, helper); |
