summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding/can/can-message-definition.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-12 14:08:16 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-19 11:36:42 +0200
commitacb0ad5052b81c111333a75f99bdf4bafe299792 (patch)
tree234ff97dc1d24fbc7a5796ceaecf11cb82323141 /CAN-binder/low-can-binding/can/can-message-definition.hpp
parent4068ee30a5e041a8e65634ed65c6bbd51a3687dd (diff)
Message definition can return ref instead of value.
Little optimization that will pass a ref instead of a copy value. Change-Id: I62fbaaa2fb01cf809e60b592a3d91f06d7235205 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-message-definition.hpp')
-rw-r--r--CAN-binder/low-can-binding/can/can-message-definition.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/can/can-message-definition.hpp b/CAN-binder/low-can-binding/can/can-message-definition.hpp
index 87c48aca..0e7e5ee3 100644
--- a/CAN-binder/low-can-binding/can/can-message-definition.hpp
+++ b/CAN-binder/low-can-binding/can/can-message-definition.hpp
@@ -60,7 +60,7 @@ public:
const std::string& get_bus_name() const;
uint32_t get_id() const;
- std::vector<std::shared_ptr<can_signal_t> > get_can_signals();
+ std::vector<std::shared_ptr<can_signal_t> >& get_can_signals();
void set_parent(std::shared_ptr<can_message_set_t> parent);
void set_last_value(const can_message_t& cm);