From 3b08b4b2656dac347c01a012667c29b813f09612 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 18 May 2017 01:03:42 +0200 Subject: Explicit move of objects vector at list initilization Change-Id: I5dc5ab4fa249c6677b188b6dea9d282a097a3250 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-message-set.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CAN-binder/low-can-binding') 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 > 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_) { -- cgit 1.2.3-korg