summaryrefslogtreecommitdiffstats
path: root/src/utils/signals.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-09 10:16:45 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commit3b55101caf70e27cb312f3f7235ed4b30ff6d849 (patch)
tree05040a840a32f2791f383c94121557c259f471c9 /src/utils/signals.hpp
parent1da3cb296788fa0a32f3669edf4c2539e80ad2e2 (diff)
Fix: use of new objects and type conversion missing.
Change-Id: I583ad536de619fed2be655a493299fe43cc65924 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/utils/signals.hpp')
-rw-r--r--src/utils/signals.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/signals.hpp b/src/utils/signals.hpp
index db3a401..fe86953 100644
--- a/src/utils/signals.hpp
+++ b/src/utils/signals.hpp
@@ -52,9 +52,9 @@ void lookup_signals_by_name(const std::string& key, std::vector<T>& signals, std
template <typename T>
void lookup_signals_by_name(const std::string& key, std::vector<T>& signals, std::vector<std::string>& found_signals_name)
{
- for(const T& s : signals)
+ for(T& s : signals)
{
- if(::fnmatch(key.c_str(), s.generic_name, FNM_CASEFOLD) == 0)
+ if(::fnmatch(key.c_str(), s.get_generic_name().c_str(), FNM_CASEFOLD) == 0)
found_signals_name.push_back(s.get_generic_name());
}
}
@@ -74,11 +74,11 @@ void lookup_signals_by_id(const double key, std::vector<T>& signals, std::vector
template <typename T>
void lookup_signals_by_id(const double key, std::vector<T>& signals, std::vector<std::string>& found_signals_name)
{
- for(const T& s : signals)
+ for(T& s : signals)
{
if(config->get_signal_id(s) == key)
{
- found_signals_name.push_back(s.generic_name);
+ found_signals_name.push_back(s.get_generic_name());
}
}
}