Change function get_bcm_msg to return a reference. 00/23100/1
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 26 Nov 2019 15:19:23 +0000 (16:19 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 28 Nov 2019 15:11:47 +0000 (16:11 +0100)
Bug-AGL : SPEC-2779
Bug-AGL: SPEC-2976

Change-Id: I303d2423151dac497917299737070ffb645267d3
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/can/message/can-message.cpp
low-can-binding/can/message/can-message.hpp

index 9bc8787..8a04992 100644 (file)
@@ -282,7 +282,7 @@ std::string can_message_t::get_debug_message()
        return ret;
 }
 
-struct bcm_msg can_message_t::get_bcm_msg()
+struct bcm_msg& can_message_t::get_bcm_msg()
 {
        return bcm_msg_;
 }
index 76515d8..75e65c6 100644 (file)
@@ -50,7 +50,7 @@ class can_message_t : public message_t {
 
                bool is_correct_to_send();
                bool is_set();
-               struct bcm_msg get_bcm_msg();
+               struct bcm_msg& get_bcm_msg();
                void set_bcm_msg(struct bcm_msg bcm_msg);
 
                std::string get_debug_message();