mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
#13126 RiaLogging: Use std::string_view instead of QString for logging
This commit is contained in:
1 parent
4957bf5a8b
commit
5ffcb69acc
231 files changed
+1082
-893
No files matched your search
@@ -1105,12 +1105,12 @@ void RiaPreferences::importPreferenceValuesFromFile( const QString& fileName )
|
||||
this->readObjectFromXmlString( fileContent, caf::PdmDefaultObjectFactory::instance() );
|
||||
}
|
||||
auto txt = "Imported preferences from " + fileName;
|
||||
RiaLogging::info( txt );
|
||||
RiaLogging::info( txt.toStdString() );
|
||||
}
|
||||
else
|
||||
{
|
||||
auto txt = QString( "Unable to open file: " ) + fileName;
|
||||
RiaLogging::error( txt );
|
||||
RiaLogging::error( txt.toStdString() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1129,11 +1129,11 @@ void RiaPreferences::exportPreferenceValuesToFile( const QString& fileName )
|
||||
file.close();
|
||||
|
||||
QString txt = "Exported preferences to " + fileName;
|
||||
RiaLogging::info( txt );
|
||||
RiaLogging::info( txt.toStdString() );
|
||||
}
|
||||
else
|
||||
{
|
||||
auto txt = QString( "Unable to open file: " ) + fileName;
|
||||
RiaLogging::error( txt );
|
||||
RiaLogging::error( txt.toStdString() );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user