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:
@@ -155,7 +155,7 @@ void RifWellPathFormationReader::readFile( const QString& filePath,
|
||||
QString line = data.readLine().toLower();
|
||||
removeWhiteSpaces( &line );
|
||||
|
||||
header = line.split( ';', QString::KeepEmptyParts );
|
||||
header = line.split( ';' );
|
||||
}
|
||||
|
||||
static const QString wellNameText = "wellname";
|
||||
@@ -172,7 +172,7 @@ void RifWellPathFormationReader::readFile( const QString& filePath,
|
||||
{
|
||||
QString line = data.readLine();
|
||||
|
||||
QStringList dataLine = line.split( ';', QString::KeepEmptyParts );
|
||||
QStringList dataLine = line.split( ';' );
|
||||
if ( dataLine.size() != header.size() ) continue;
|
||||
|
||||
bool conversionOk;
|
||||
@@ -224,7 +224,7 @@ void RifWellPathFormationReader::readFile( const QString& filePath,
|
||||
{
|
||||
QString line = data.readLine();
|
||||
|
||||
QStringList dataLine = line.split( ';', QString::KeepEmptyParts );
|
||||
QStringList dataLine = line.split( ';' );
|
||||
if ( dataLine.size() != header.size() ) continue;
|
||||
|
||||
QString wellName = dataLine[wellNameIndex];
|
||||
|
||||
Reference in New Issue
Block a user