diff options
Diffstat (limited to 'src/libctor.cc')
-rw-r--r-- | src/libctor.cc | 8 |
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()); |