diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-07 16:51:49 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-12-07 16:51:49 +0100 |
commit | 87997f6285fdba420c00e740d26f98f7e7e06504 (patch) | |
tree | d8631c7b7ab2998ff5165ed4c1e163b21b5faaaa /src/rebuild.cc | |
parent | 0008920eed996009068fe9f71512c436577b6220 (diff) |
Create sources from string_views instead of const char* and std::strings.develop
Diffstat (limited to 'src/rebuild.cc')
-rw-r--r-- | src/rebuild.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebuild.cc b/src/rebuild.cc index f0d52d9..76fcbef 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -192,7 +192,7 @@ bool recompileCheck(const ctor::settings& global_settings, int argc, char* argv[ if(std::filesystem::exists(configurationFile)) { - config.sources.push_back(configurationFile.string()); + config.sources.emplace_back(configurationFile.string()); } for(std::size_t i = 0; i < numConfigFiles; ++i) @@ -206,7 +206,7 @@ bool recompileCheck(const ctor::settings& global_settings, int argc, char* argv[ // Ensure that files containing multiple configurations are only added once. if(!contains(config.sources, location)) { - config.sources.push_back(location); + config.sources.emplace_back(location); } } @@ -221,7 +221,7 @@ bool recompileCheck(const ctor::settings& global_settings, int argc, char* argv[ // Ensure that files containing multiple configurations are only added once. if(!contains(config.sources, location)) { - config.sources.push_back(location); + config.sources.emplace_back(location); } } |