From 065a5bdef8c37f8b0466f63e48443dab31e86431 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 10 Mar 2017 16:08:06 +0100 Subject: We doesn't modify member once getted, we can use const return and const method. Change-Id: I0f7465af74b1c9a546af45a0d1eea33c93537e0c Signed-off-by: Romain Forlot --- src/can/can-signals.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/can/can-signals.hpp') diff --git a/src/can/can-signals.hpp b/src/can/can-signals.hpp index 10403da..c1d07ee 100644 --- a/src/can/can-signals.hpp +++ b/src/can/can-signals.hpp @@ -110,8 +110,9 @@ private: public: can_message_definition_t& get_message(); - std::string& get_generic_name(); - std::string get_name(); + const std::string& get_generic_name() const; + const std::string get_name() const; + const std::string& get_prefix() const; uint8_t get_bit_position() const; uint8_t get_bit_size() const; float get_factor() const; -- cgit 1.2.3-korg