mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ignore empty lines and comments when parsing xsb_aircraft.txt
This commit is contained in:
committed by
Mathew Sutcliffe
parent
aa368c45ea
commit
db6b3b07fa
@@ -620,6 +620,7 @@ namespace BlackMisc
|
||||
{
|
||||
++lineNum;
|
||||
QString line = in.readLine();
|
||||
if (line.isEmpty() || line[0] == '#') continue;
|
||||
auto tokens = splitString(line, [](QChar c) { return c.isSpace(); });
|
||||
if (!tokens.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user