Codechange: Use std::string in INI file parsing.

This commit is contained in:
Michael Lutz
2020-05-17 23:32:03 +02:00
parent 8aef14386f
commit 715aa67a9c
11 changed files with 179 additions and 168 deletions

View File

@@ -290,7 +290,7 @@ void HotkeyList::Load(IniFile *ini)
IniItem *item = group->GetItem(hotkey->name, false);
if (item != nullptr) {
hotkey->keycodes.clear();
if (item->value != nullptr) ParseHotkeys(hotkey, item->value);
if (item->value.has_value()) ParseHotkeys(hotkey, item->value->c_str());
}
}
}