mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix several deprecation warnings (#8657)
* Use constructor instead of nullptr for WindowFlags * Use constructor instead of nullptr for Alignment * Disable deprecation warning for QProcess * Add string split method to RaTextStringTools * Add caf.cpp used to manage Qt function deprecations * Use position()
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
#include "RiaEclipseUnitTools.h"
|
||||
#include "RiaFractureDefines.h"
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaTextStringTools.h"
|
||||
|
||||
#include "RigStimPlanFractureDefinition.h"
|
||||
|
||||
#include <QFile>
|
||||
@@ -474,7 +476,7 @@ void RifStimPlanXmlReader::getGriddingValues( QXmlStreamReader& xmlStream,
|
||||
QString gridValuesString = xmlStream.readElementText().replace( '\n', ' ' );
|
||||
gridValuesString = gridValuesString.replace( '[', ' ' ).replace( ']', ' ' );
|
||||
|
||||
for ( const QString& value : gridValuesString.split( ' ', QString::SkipEmptyParts ) )
|
||||
for ( const QString& value : RiaTextStringTools::splitSkipEmptyParts( gridValuesString ) )
|
||||
{
|
||||
if ( value.size() > 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user