tweak StringOutputStream use

auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
This commit is contained in:
Garux
2024-01-29 16:54:08 +06:00
parent b4e44bc8ed
commit df02774ff5
122 changed files with 984 additions and 1204 deletions

View File

@@ -47,9 +47,7 @@ Image* QERApp_LoadImage( void* environment, const char* name ){
}
void visit( const char* name, const _QERPlugImageTable& table ) const {
if ( m_image == 0 ) {
StringOutputStream fullname( 256 );
fullname << m_name << '.' << name;
ArchiveFile* file = GlobalFileSystem().openFile( fullname.c_str() );
ArchiveFile* file = GlobalFileSystem().openFile( StringStream( m_name, '.', name ) );
if ( file != 0 ) {
m_image = table.loadImage( *file );
file->release();