diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-10 15:14:56 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:41 +0100 |
commit | 7b131462d3b84f9fd5e87938c5f26d951d39a6cb (patch) | |
tree | 1e5ac1db9bb31f33707701f94ba3b418a777fc98 /src/utils/signals.hpp | |
parent | 390edc67f93cb9447fb4585a12f58a63754c56d5 (diff) |
Instead of a global pointer, config is now a Singleton.
Change-Id: I0cfc34f330c531ba5f070542a1cb723be4bcc70a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/utils/signals.hpp')
-rw-r--r-- | src/utils/signals.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/signals.hpp b/src/utils/signals.hpp index fe869539..4380045e 100644 --- a/src/utils/signals.hpp +++ b/src/utils/signals.hpp @@ -64,7 +64,7 @@ void lookup_signals_by_id(const double key, std::vector<T>& signals, std::vector { for(T& s : signals) { - if(config->get_signal_id(s) == key) + if(configuration_t::instance().get_signal_id(s) == key) { found_signals.push_back(&s); } @@ -76,7 +76,7 @@ void lookup_signals_by_id(const double key, std::vector<T>& signals, std::vector { for(T& s : signals) { - if(config->get_signal_id(s) == key) + if(configuration_t::instance().get_signal_id(s) == key) { found_signals_name.push_back(s.get_generic_name()); } |