Fix: c++11 detected and not applied from config
[apps/agl-service-can-low-level.git] / CAN-binder / low-can-binding / diagnostic / diagnostic-message.hpp
index ac427b9..8217614 100644 (file)
@@ -64,7 +64,7 @@ class diagnostic_message_t
 
        public:
                const char* generic_name = generic_name_.c_str();
-               diagnostic_message_t(uint8_t pid, const std::string generic_name, const int min, const int max, enum UNIT unit, float frequency,
+               diagnostic_message_t(uint8_t pid, const std::string& generic_name, const int min, const int max, enum UNIT unit, float frequency,
                                                                                        DiagnosticResponseDecoder decoder, DiagnosticResponseCallback callback, bool supported);
 
                uint32_t get_pid();
@@ -77,7 +77,7 @@ class diagnostic_message_t
 
                void set_supported(bool value);
                void set_parent(can_message_set_t* parent);
-               const DiagnosticRequest build_diagnostic_request();
+               const DiagnosticRequest build_diagnostic_request() const;
 
                bool is_obd2_response(const can_message_t& can_message);
                bool is_obd2_request(const DiagnosticRequest *request);