From 1193b78e43c0320ec5f791049d6ce1b3c3cacd3f Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sun, 31 May 2020 21:16:13 +0200 Subject: [PATCH] controller: Use unordered_map for legacy actions --- src/components/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),