tweak StringOutputStream use
auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
This commit is contained in:
@@ -70,7 +70,7 @@ bool DoLoadPortalFileDialog(){
|
||||
}
|
||||
|
||||
|
||||
portals.fn = StringOutputStream( 256 )( PathExtensionless( GlobalRadiant().getMapName() ), ".prt" );
|
||||
portals.fn = StringStream( PathExtensionless( GlobalRadiant().getMapName() ), ".prt" );
|
||||
|
||||
line->setText( portals.fn.c_str() );
|
||||
check3d->setChecked( portals.show_3d );
|
||||
|
||||
Reference in New Issue
Block a user