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/configure.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/configure.cc') diff --git a/src/configure.cc b/src/configure.cc index 3d73011..11caa92 100644 --- a/src/configure.cc +++ b/src/configure.cc @@ -350,9 +350,10 @@ int regenerateCache(ctor::settings& settings, // Resolv externals ctor::external_configurations externalConfigs; - for(std::size_t i = 0; i < numExternalConfigFiles; ++i) + const auto& externalConfigFiles = getExternalConfigFileList(); + for(const auto& externalConfigFile : externalConfigFiles) { - auto newExternalConfigs = externalConfigFiles[i].cb(settings); + auto newExternalConfigs = externalConfigFile.cb(settings); externalConfigs.insert(externalConfigs.end(), newExternalConfigs.begin(), newExternalConfigs.end()); -- cgit v1.2.3