diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-06-17 14:01:57 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-06-18 20:09:23 +0200 |
commit | fa751a47ff4253f58518d7f43d33ec1227ea0dbc (patch) | |
tree | 06ed349c6e1dac6e87c3f9e9f879cc4603edd106 /src/util/system.cpp | |
parent | fa3c1eee7ff2646e78540d53b4f8eaf095a8c27d (diff) |
Remove unused OptionsCategory arg from AddCommand
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r-- | src/util/system.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 5ea0139275..ee7a76be29 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -620,14 +620,14 @@ void ArgsManager::ForceSetArg(const std::string& strArg, const std::string& strV m_settings.forced_settings[SettingName(strArg)] = strValue; } -void ArgsManager::AddCommand(const std::string& cmd, const std::string& help, const OptionsCategory& cat) +void ArgsManager::AddCommand(const std::string& cmd, const std::string& help) { Assert(cmd.find('=') == std::string::npos); Assert(cmd.at(0) != '-'); LOCK(cs_args); m_accept_any_command = false; // latch to false - std::map<std::string, Arg>& arg_map = m_available_args[cat]; + std::map<std::string, Arg>& arg_map = m_available_args[OptionsCategory::COMMANDS]; auto ret = arg_map.emplace(cmd, Arg{"", help, ArgsManager::COMMAND}); Assert(ret.second); // Fail on duplicate commands } |