Partially revert "Remove unused stringutils methods"

This partially reverts commit 0c1a5a5c97.
This commit is contained in:
Lars Toenning
2022-06-05 22:47:41 +02:00
parent 684b2b1068
commit 1a1b5429d5
5 changed files with 35 additions and 2 deletions

View File

@@ -569,7 +569,7 @@ namespace BlackMisc::Simulation::XPlane
{
++lineNum;
QString line = in.readLine();
auto tokens = line.split(' ');
auto tokens = splitString(line, [](QChar c) { return c.isSpace(); });
if (!tokens.empty())
{
auto it = commands.find(tokens[0]);
@@ -615,7 +615,7 @@ namespace BlackMisc::Simulation::XPlane
++lineNum;
QString line = in.readLine();
if (line.isEmpty() || line[0] == '#') continue;
auto tokens = line.split(' ');
auto tokens = splitString(line, [](QChar c) { return c.isSpace(); });
if (!tokens.empty())
{
auto it = commands.find(tokens[0]);