mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance : Return a static QString for string used many times
This commit is contained in:
@@ -178,7 +178,9 @@ bool RiaDefines::isNativeCategoryResult( const QString& resultName )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RiaDefines::undefinedResultName()
|
||||
{
|
||||
return "None";
|
||||
const static QString undefResultName = "None";
|
||||
|
||||
return undefResultName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user