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
@ -46,7 +46,10 @@ private:
|
|||||||
std::string token;
|
std::string token;
|
||||||
while (std::getline(ss, token, delimiter))
|
while (std::getline(ss, token, delimiter))
|
||||||
{
|
{
|
||||||
cont.push_back(token);
|
if (token.find_first_not_of(delimiter) != std::string::npos)
|
||||||
|
{
|
||||||
|
cont.push_back(token);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user