diff options
Diffstat (limited to 'src/configure.cc')
-rw-r--r-- | src/configure.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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()); |