summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.cpp2
-rw-r--r--src/config/config.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/config.cpp b/src/config/config.cpp
index 24a1c87..0db5751 100644
--- a/src/config/config.cpp
+++ b/src/config/config.cpp
@@ -37,7 +37,7 @@ void Config::set(const std::string& option, const std::string& value, bool save)
}
}
-void Config::connect(t_config_changed_callback callback)
+void Config::connect(const t_config_changed_callback& callback)
{
Config::callbacks.push_back(callback);
}
diff --git a/src/config/config.hpp b/src/config/config.hpp
index 4e01281..2ba38cc 100644
--- a/src/config/config.hpp
+++ b/src/config/config.hpp
@@ -54,7 +54,7 @@ public:
* configuration change occurs (when set() is called, or when the initial
* conf is read)
*/
- static void connect(t_config_changed_callback);
+ static void connect(const t_config_changed_callback&);
/**
* Destroy the instance, forcing it to be recreated (with potentially
* different parameters) the next time it’s needed.