Don't move local vars
Copy ellision allows optimization if we don't explicitly move a local variable in the return
This commit is contained in:
parent
baa13b885f
commit
cbe6cd3048
|
@ -1374,7 +1374,7 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject )
|
|||
field.SetAttributes( m_Attributes );
|
||||
field.SetPosition( m_Pos );
|
||||
|
||||
return std::move( field );
|
||||
return field;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue