eolian-cxx: Add std::move to member variable initialization

CID 1361231
This commit is contained in:
Felipe Magno de Almeida 2016-12-20 15:55:59 -03:00
parent b92acd5caf
commit e64327bacc
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ struct parameter_def
std::string c_type;
parameter_def(parameter_direction direction, type_def type, std::string param_name, std::string c_type)
: direction(direction), type(type), param_name(param_name), c_type(c_type) {}
: direction(std::move(direction)), type(std::move(type)), param_name(std::move(param_name)), c_type(std::move(c_type)) {}
parameter_def(Eolian_Function_Parameter const* param)
: type( ::eolian_parameter_type_get(param))
, param_name( ::eolian_parameter_name_get(param))