diff --git a/src/components/controller.cpp b/src/components/controller.cpp index 73da2af7..51cc6fc9 100644 --- a/src/components/controller.cpp +++ b/src/components/controller.cpp @@ -412,7 +412,7 @@ bool controller::try_forward_legacy_action(const string& cmd) { // clang-format off #define A_MAP(old, module_name, event) {old, {string(module_name::TYPE), string(module_name::event)}} - static const std::map> legacy_actions{ + static const std::unordered_map> legacy_actions{ A_MAP("datetoggle", date_module, EVENT_TOGGLE), #if ENABLE_ALSA A_MAP("volup", alsa_module, EVENT_INC),