#13126 RiaLogging: Use std::string_view instead of QString for logging

This commit is contained in:
Kristian Bendiksen committed 2026-05-08 10:11:09 +02:00
1 parent 4957bf5a8b
commit 5ffcb69acc
231 files changed
+1082 -893

No files matched your search

@@ -174,7 +174,7 @@ void RimPlotCellPropertyFilter::updateCellVisibilityFromFilter( size_t timeStepI
QString message =
QString( "Size of visible Cells (%1) is less than total cell count (%2)" ).arg( visibleCells->size() ).arg( totalReservoirCellCount );
RiaLogging::error( message );
RiaLogging::error( message.toStdString() );
return;
}
@@ -21,6 +21,7 @@
#include "RiaColorTables.h"
#include "RiaColorTools.h"
#include "RiaLogging.h"
#include "RiaQStringFormatter.h"
#include "RifTextDataTableFormatter.h"
@@ -530,7 +531,7 @@ void RimGridCrossPlotDataSet::onLoadDataAndUpdate( bool updateParentPlot )
if ( !eclipseCase->ensureReservoirCaseIsOpen() )
{
RiaLogging::warning( QString( "Failed to open eclipse grid file %1" ).arg( eclipseCase->gridFileName() ) );
RiaLogging::warning( std::format( "Failed to open eclipse grid file {}", eclipseCase->gridFileName() ) );
return;
}