mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove use of QStringList::toStdVector and fromStdVector
This commit is contained in:
@@ -249,7 +249,8 @@ bool RimEclipseResultCase::importAsciiInputProperties( const QStringList& fileNa
|
||||
return RifEclipseInputPropertyLoader::readInputPropertiesFromFiles( m_inputPropertyCollection,
|
||||
this->eclipseCaseData(),
|
||||
importFaults,
|
||||
fileNames.toVector().toStdVector() );
|
||||
std::vector<QString>( fileNames.begin(),
|
||||
fileNames.end() ) );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -460,7 +460,11 @@ void RimWellMeasurementInView::setAllQualitiesSelected()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellMeasurementInView::convertToSerializableString( const std::vector<QString>& strings )
|
||||
{
|
||||
QStringList stringList = QVector<QString>::fromStdVector( strings ).toList();
|
||||
QStringList stringList;
|
||||
for ( const auto& string : strings )
|
||||
{
|
||||
stringList.push_back( string );
|
||||
}
|
||||
return stringList.join( '|' );
|
||||
}
|
||||
|
||||
@@ -470,7 +474,7 @@ QString RimWellMeasurementInView::convertToSerializableString( const std::vector
|
||||
std::vector<QString> RimWellMeasurementInView::convertFromSerializableString( const QString& string )
|
||||
{
|
||||
QStringList stringList = string.split( '|' );
|
||||
return stringList.toVector().toStdVector();
|
||||
return std::vector<QString>( stringList.begin(), stringList.end() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user