mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Skip empty tokens
This commit is contained in:
parent
5ab56bb2fb
commit
45d3fe5eaa
@ -45,9 +45,12 @@ private:
|
||||
std::stringstream ss(str);
|
||||
std::string token;
|
||||
while (std::getline(ss, token, delimiter))
|
||||
{
|
||||
if (token.find_first_not_of(delimiter) != std::string::npos)
|
||||
{
|
||||
cont.push_back(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user