From f00456e6bff95fa8e7d124cb6feeb2b3204f8ad4 Mon Sep 17 00:00:00 2001 From: spycrab Date: Mon, 4 Sep 2017 08:55:08 +0200 Subject: [PATCH] Qt/ControllersWindow: Use std::map instead of std::unordered_map --- Source/Core/DolphinQt2/Config/ControllersWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt2/Config/ControllersWindow.cpp b/Source/Core/DolphinQt2/Config/ControllersWindow.cpp index ab1b22dee1..59e422ba6c 100644 --- a/Source/Core/DolphinQt2/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt2/Config/ControllersWindow.cpp @@ -18,7 +18,7 @@ #include #include -#include +#include #include "Core/ConfigManager.h" #include "Core/HW/SI/SI.h" @@ -33,13 +33,13 @@ #include "DolphinQt2/Config/ControllersWindow.h" -static const std::unordered_map s_gc_types = { +static const std::map s_gc_types = { {SerialInterface::SIDEVICE_NONE, 0}, {SerialInterface::SIDEVICE_GC_CONTROLLER, 1}, {SerialInterface::SIDEVICE_WIIU_ADAPTER, 2}, {SerialInterface::SIDEVICE_GC_STEERING, 3}, {SerialInterface::SIDEVICE_DANCEMAT, 4}, {SerialInterface::SIDEVICE_GC_TARUKONGA, 5}, {SerialInterface::SIDEVICE_GC_GBA, 6}, {SerialInterface::SIDEVICE_GC_KEYBOARD, 7}}; -static const std::unordered_map s_wiimote_types = { +static const std::map s_wiimote_types = { {WIIMOTE_SRC_NONE, 0}, {WIIMOTE_SRC_EMU, 1}, {WIIMOTE_SRC_REAL, 2}, {WIIMOTE_SRC_HYBRID, 3}}; static int ToGCMenuIndex(const SerialInterface::SIDevices sidevice)