From 1c70100beac9f595060e0ed971f05be11360a35b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 17 Apr 2023 20:12:41 +0100 Subject: [PATCH] Use std::unordered_map<> in the GUI unit test code This allows to use the correct types for the map keys and values too. --- tests/testableframe.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/testableframe.h b/tests/testableframe.h index 515e908800..7626ca6e6f 100644 --- a/tests/testableframe.h +++ b/tests/testableframe.h @@ -7,9 +7,10 @@ /////////////////////////////////////////////////////////////////////////////// #include "wx/frame.h" -#include "wx/hashmap.h" #include "wx/event.h" +#include + class wxTestableFrame : public wxFrame { public: @@ -23,7 +24,7 @@ private: int GetEventCount(wxEventType type); void ClearEventCount(wxEventType type); - wxLongToLongHashMap m_count; + std::unordered_map m_count; }; class EventCounter