summaryrefslogtreecommitdiff
path: root/src/libctor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-03-30 14:23:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2025-03-30 14:38:01 +0200
commit0022a217643dd7119df5dc0fcca41161d3201acc (patch)
tree8917a1f72958c4c595df4e72ca26389f9780b6c6 /src/libctor.cc
parent0778d3c45d1aef18d9b2ae6769e372b2a3d83b8e (diff)
Refactor code for registering build_configuration registrations.
Diffstat (limited to 'src/libctor.cc')
-rw-r--r--src/libctor.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libctor.cc b/src/libctor.cc
index 1538370..d72d82b 100644
--- a/src/libctor.cc
+++ b/src/libctor.cc
@@ -231,14 +231,16 @@ Options:
{
no_default_build = true;
std::vector<std::string> files;
- for(std::size_t i = 0; i < numConfigFiles; ++i)
+ const auto& configFiles = getConfigFileList();
+ for(const auto& configFile : configFiles)
{
- files.emplace_back(configFiles[i].file);
+ files.emplace_back(configFile.file);
}
- for(std::size_t i = 0; i < numExternalConfigFiles; ++i)
+ const auto& externalConfigFiles = getExternalConfigFileList();
+ for(const auto& externalConfigFile : externalConfigFiles)
{
- files.emplace_back(externalConfigFiles[i].file);
+ files.emplace_back(externalConfigFile.file);
}
std::sort(files.begin(), files.end());