From: Romain Forlot Date: Tue, 26 Nov 2019 15:19:23 +0000 (+0100) Subject: Change function get_bcm_msg to return a reference. X-Git-Tag: 8.0.4~19 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=d4e4f4a23fefe8df109b990bd59396b527d3d31b;p=apps%2Fagl-service-can-low-level.git Change function get_bcm_msg to return a reference. Bug-AGL : SPEC-2779 Bug-AGL: SPEC-2976 Change-Id: I303d2423151dac497917299737070ffb645267d3 Signed-off-by: Arthur Guyader Signed-off-by: Romain Forlot --- diff --git a/low-can-binding/can/message/can-message.cpp b/low-can-binding/can/message/can-message.cpp index 9bc8787f..8a04992e 100644 --- a/low-can-binding/can/message/can-message.cpp +++ b/low-can-binding/can/message/can-message.cpp @@ -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_; } diff --git a/low-can-binding/can/message/can-message.hpp b/low-can-binding/can/message/can-message.hpp index 76515d80..75e65c67 100644 --- a/low-can-binding/can/message/can-message.hpp +++ b/low-can-binding/can/message/can-message.hpp @@ -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();