summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-12-20 15:55:59 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-12-20 16:06:58 -0300
commite64327bacc6feb7aa2ab74e3481ccf48094540f2 (patch)
tree242af6a51a2992647856f3c79728249647f83cf4 /src/lib/eolian_cxx
parentb92acd5cafe374adb2aa6fcd8ed6e4a38a843ff4 (diff)
eolian-cxx: Add std::move to member variable initialization
CID 1361231
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index ee03b652b7..4b9bc48205 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -316,7 +316,7 @@ struct parameter_def
316 std::string c_type; 316 std::string c_type;
317 317
318 parameter_def(parameter_direction direction, type_def type, std::string param_name, std::string c_type) 318 parameter_def(parameter_direction direction, type_def type, std::string param_name, std::string c_type)
319 : direction(direction), type(type), param_name(param_name), c_type(c_type) {} 319 : direction(std::move(direction)), type(std::move(type)), param_name(std::move(param_name)), c_type(std::move(c_type)) {}
320 parameter_def(Eolian_Function_Parameter const* param) 320 parameter_def(Eolian_Function_Parameter const* param)
321 : type( ::eolian_parameter_type_get(param)) 321 : type( ::eolian_parameter_type_get(param))
322 , param_name( ::eolian_parameter_name_get(param)) 322 , param_name( ::eolian_parameter_name_get(param))