summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-03-29 23:32:43 +0200
committerlouiz’ <louiz@louiz.org>2017-03-29 23:32:43 +0200
commit1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd (patch)
tree8da20afbb4520f71bbdd9ed6fc2ff301bb7be992 /src/config
parent52b795d11976802cfec12d886fca508047ffed89 (diff)
downloadbiboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.tar.gz
biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.tar.bz2
biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.tar.xz
biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.zip
Remove two sneaky log_debug
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.