summaryrefslogtreecommitdiff
path: root/src/configure.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-06-08 17:31:36 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:25:15 +0200
commit61f7f7538cc6abb0be64c35570f38dd2541d7451 (patch)
tree092c97084f191eb502b06740a76658432dada34a /src/configure.cc
parentd9cb571fe126e7e94a52361d733161aa25f23597 (diff)
Add const Settings& to build configuration callbacks.
Diffstat (limited to 'src/configure.cc')
-rw-r--r--src/configure.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/configure.cc b/src/configure.cc
index 02e8224..bc7d3e8 100644
--- a/src/configure.cc
+++ b/src/configure.cc
@@ -10,7 +10,6 @@
#include <getoptpp/getoptpp.hpp>
-#include "settings.h"
#include "execute.h"
#include "libctor.h"
#include "tasks.h"
@@ -260,7 +259,7 @@ int regenerateCache(const Settings& default_settings,
ExternalConfigurations externalConfigs;
for(std::size_t i = 0; i < numExternalConfigFiles; ++i)
{
- auto newExternalConfigs = externalConfigFiles[i].cb();
+ auto newExternalConfigs = externalConfigFiles[i].cb(settings);
externalConfigs.insert(externalConfigs.end(),
newExternalConfigs.begin(),
newExternalConfigs.end());