summaryrefslogtreecommitdiff
path: root/methods/rred.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-04-08 10:41:13 +0000
committerJulian Andres Klode <jak@debian.org>2026-04-08 10:41:13 +0000
commitfbde7ea4ce304a30e155a2bd9d014d196abbb496 (patch)
treede51c6f3ce74d0b7fd1ddacd0812cd1cbe116c14 /methods/rred.cc
parent5b649fb72ecdced056fb3daab02e88933cc7a32a (diff)
parentef70431f02e2ec13ecedab7ac342574e52d1877b (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 'methods/rred.cc')
-rw-r--r--methods/rred.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/rred.cc b/methods/rred.cc
index 836697a11..56b536a82 100644
--- a/methods/rred.cc
+++ b/methods/rred.cc
@@ -657,7 +657,7 @@ class RredMethod final : public aptMethod {
std::string const FileName = Path + ".ed";
if (ExpectedHashes.usable() == false)
return _error->Error("No hashes found for uncompressed patch: %s", FileName.c_str());
- patchfiles.push_back(PDiffFile(FileName, ExpectedHashes));
+ patchfiles.emplace_back(FileName, ExpectedHashes);
}
else
{
@@ -675,7 +675,7 @@ class RredMethod final : public aptMethod {
HashStringList const ExpectedHashes = ReadExpectedHashesForPatch(seen_patches, Message);
if (ExpectedHashes.usable() == false)
return _error->Error("No hashes found for uncompressed patch %d: %s", seen_patches, p->c_str());
- patchfiles.push_back(PDiffFile(*p, ExpectedHashes));
+ patchfiles.emplace_back(*p, ExpectedHashes);
++seen_patches;
}
}