From 1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Wed, 29 Mar 2017 23:32:43 +0200 Subject: Remove two sneaky log_debug --- src/config/config.cpp | 2 +- src/config/config.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config') 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. -- cgit v1.2.3