summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-18 01:03:42 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-19 11:36:43 +0200
commit3b08b4b2656dac347c01a012667c29b813f09612 (patch)
treebc2771aee3bfb5d6654388b75e28d0695bf31576 /CAN-binder/low-can-binding
parent8c316219e6b02885f316ca996b98d85322519bc8 (diff)
Explicit move of objects vector at list initilization
Change-Id: I5dc5ab4fa249c6677b188b6dea9d282a097a3250 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding')
-rw-r--r--CAN-binder/low-can-binding/can/can-message-set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CAN-binder/low-can-binding/can/can-message-set.cpp b/CAN-binder/low-can-binding/can/can-message-set.cpp
index cfa640a6..0bce918e 100644
--- a/CAN-binder/low-can-binding/can/can-message-set.cpp
+++ b/CAN-binder/low-can-binding/can/can-message-set.cpp
@@ -27,8 +27,8 @@ can_message_set_t::can_message_set_t(
std::vector<std::shared_ptr<diagnostic_message_t> > diagnostic_messages)
: index_{index}
, name_{name}
- , can_messages_definition_{can_messages_definition}
- , diagnostic_messages_{diagnostic_messages}
+ , can_messages_definition_{std::move(can_messages_definition)}
+ , diagnostic_messages_{std::move(diagnostic_messages)}
{
for(auto& cmd : can_messages_definition_)
{