Use std::unordered_map<> in the GUI unit test code

This allows to use the correct types for the map keys and values too.
This commit is contained in:
Vadim Zeitlin 2023-04-17 20:12:41 +01:00
parent 7d6f9e2d24
commit 080b59ca8b

View file

@ -7,9 +7,10 @@
///////////////////////////////////////////////////////////////////////////////
#include "wx/frame.h"
#include "wx/hashmap.h"
#include "wx/event.h"
#include <unordered_map>
class wxTestableFrame : public wxFrame
{
public:
@ -23,7 +24,7 @@ private:
int GetEventCount(wxEventType type);
void ClearEventCount(wxEventType type);
wxLongToLongHashMap m_count;
std::unordered_map<wxEventType, int> m_count;
};
class EventCounter