From 0022a217643dd7119df5dc0fcca41161d3201acc Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 30 Mar 2025 14:23:26 +0200 Subject: Refactor code for registering build_configuration registrations. --- src/libctor.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/libctor.cc') 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 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()); -- cgit v1.2.3