Change function get_bcm_msg to return a reference. 48/22248/3
authorArthur Guyader <arthur.guyader@iot.bzh>
Mon, 26 Aug 2019 13:39:33 +0000 (15:39 +0200)
committerArthur Guyader <arthur.guyader@iot.bzh>
Fri, 30 Aug 2019 09:46:04 +0000 (11:46 +0200)
Bug-AGL : SPEC-2779

Change-Id: I303d2423151dac497917299737070ffb645267d3
Signed-off-by: Arthur Guyader <arthur.guyader@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();