summaryrefslogtreecommitdiff
path: root/src/libctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-12-09 20:02:33 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-12-09 20:28:00 +0100
commit4f3422c58ed4fc14b222cd474843affb9cc509c4 (patch)
tree5d6079f5309fabf553119fad5b01779c6a8097d0 /src/libctor.cc
parent5ba36c7be0a12b9b052fb172a209d3b6dffc9a99 (diff)
Various clang-tidy fixes.
Diffstat (limited to 'src/libctor.cc')
-rw-r--r--src/libctor.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libctor.cc b/src/libctor.cc
index 3eb6c6f..9be14b2 100644
--- a/src/libctor.cc
+++ b/src/libctor.cc
@@ -100,7 +100,7 @@ int main(int argc, char* argv[])
"Add specified file to the build configurations.",
[&]() {
no_relaunch = true;
- add_files.push_back(optarg);
+ add_files.emplace_back(optarg);
return 0;
});
@@ -108,7 +108,7 @@ int main(int argc, char* argv[])
"Remove specified file from the build configurations.",
[&]() {
no_relaunch = true;
- remove_files.push_back(optarg);
+ remove_files.emplace_back(optarg);
return 0;
});
@@ -187,12 +187,12 @@ Options:
std::vector<std::string> files;
for(std::size_t i = 0; i < numConfigFiles; ++i)
{
- files.push_back(configFiles[i].file);
+ files.emplace_back(configFiles[i].file);
}
for(std::size_t i = 0; i < numExternalConfigFiles; ++i)
{
- files.push_back(externalConfigFiles[i].file);
+ files.emplace_back(externalConfigFiles[i].file);
}
std::sort(files.begin(), files.end());