mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
tweak StringOutputStream use
auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
This commit is contained in:
+10
-15
@@ -35,23 +35,18 @@
|
||||
|
||||
QIcon new_plugin_icon( const char* filename ){
|
||||
StringOutputStream fullpath( 256 );
|
||||
{
|
||||
fullpath( AppPath_get(), g_pluginsDir, "bitmaps/", filename );
|
||||
if( file_exists( fullpath ) )
|
||||
return QIcon( fullpath.c_str() );
|
||||
}
|
||||
|
||||
{
|
||||
fullpath( GameToolsPath_get(), g_pluginsDir, "bitmaps/", filename );
|
||||
if( file_exists( fullpath ) )
|
||||
return QIcon( fullpath.c_str() );
|
||||
}
|
||||
fullpath( AppPath_get(), g_pluginsDir, "bitmaps/", filename );
|
||||
if( file_exists( fullpath ) )
|
||||
return QIcon( fullpath.c_str() );
|
||||
|
||||
{
|
||||
fullpath( AppPath_get(), g_modulesDir, "bitmaps/", filename );
|
||||
if( file_exists( fullpath ) )
|
||||
return QIcon( fullpath.c_str() );
|
||||
}
|
||||
fullpath( GameToolsPath_get(), g_pluginsDir, "bitmaps/", filename );
|
||||
if( file_exists( fullpath ) )
|
||||
return QIcon( fullpath.c_str() );
|
||||
|
||||
fullpath( AppPath_get(), g_modulesDir, "bitmaps/", filename );
|
||||
if( file_exists( fullpath ) )
|
||||
return QIcon( fullpath.c_str() );
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user