mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Fix gcc build
This commit is contained in:
@@ -224,8 +224,12 @@ void Reader::readLine(bool in_string) {
|
|||||||
indent += 1;
|
indent += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
key = canonical_name_form(trim(key));
|
key = canonical_name_form(trim(key));
|
||||||
value = pos == String::npos ? String() : trim_left(substr(line, pos+1));
|
if (pos == String::npos) {
|
||||||
|
value.clear();
|
||||||
|
} else {
|
||||||
|
value = trim_left(substr(line, pos+1));
|
||||||
|
}
|
||||||
if (key.empty() && pos!=String::npos) key = _(" "); // we don't want an empty key if there was a colon
|
if (key.empty() && pos!=String::npos) key = _(" "); // we don't want an empty key if there was a colon
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user