mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Added StringView type (similar to std::string_view)
This commit is contained in:
@@ -225,7 +225,7 @@ void Reader::readLine(bool in_string) {
|
||||
}
|
||||
}
|
||||
key = canonical_name_form(trim(key));
|
||||
value = pos == String::npos ? _("") : trim_left(line.substr(pos+1));
|
||||
value = pos == String::npos ? String() : 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user