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:
Seth Hillbrand 2023-01-03 10:20:18 -08:00
parent baa13b885f
commit cbe6cd3048
1 changed files with 1 additions and 1 deletions

View File

@ -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: