mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance : Use std::string when parsing address strings
This commit is contained in:
@@ -365,7 +365,7 @@ bool RifEclipseUserDataKeywordTools::knownKeywordsWithZeroRequiredHeaderLines( c
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifEclipseUserDataKeywordTools::extractThreeInts( int* cellI, int* cellJ, int* cellK, const std::string& line )
|
||||
{
|
||||
std::vector<std::string> words = RiaStdStringTools::splitStringBySpace( line );
|
||||
std::vector<std::string> words = RiaStdStringTools::splitString( line, ' ' );
|
||||
if ( words.size() > 2 )
|
||||
{
|
||||
*cellI = RiaStdStringTools::toInt( words[0] );
|
||||
|
||||
Reference in New Issue
Block a user