summaryrefslogtreecommitdiff
path: root/artd/file_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'artd/file_utils.cc')
-rw-r--r--artd/file_utils.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/artd/file_utils.cc b/artd/file_utils.cc
index 45344e1343..53fe9f9625 100644
--- a/artd/file_utils.cc
+++ b/artd/file_utils.cc
@@ -149,6 +149,7 @@ Result<void> NewFile::CommitAllOrAbandon(const std::vector<NewFile*>& files_to_c
// Move old files to temporary locations.
std::vector<std::string_view> all_files_to_remove;
+ all_files_to_remove.reserve(files_to_commit.size() + files_to_remove.size());
for (NewFile* file : files_to_commit) {
all_files_to_remove.push_back(file->FinalPath());
}