Codechange: Pass ini file by reference and prefer automatic storage.
This avoids new/delete operations, and (not) checking for nullptr.
This commit is contained in:
committed by
Peter Nelson
parent
3961318974
commit
0c85ce29ea
@@ -40,8 +40,8 @@ struct HotkeyList {
|
||||
HotkeyList(const std::string &ini_group, const std::vector<Hotkey> &items, GlobalHotkeyHandlerFunc global_hotkey_handler = nullptr);
|
||||
~HotkeyList();
|
||||
|
||||
void Load(IniFile *ini);
|
||||
void Save(IniFile *ini) const;
|
||||
void Load(IniFile &ini);
|
||||
void Save(IniFile &ini) const;
|
||||
|
||||
int CheckMatch(uint16_t keycode, bool global_only = false) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user