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:
parent
7d6f9e2d24
commit
080b59ca8b
1 changed files with 3 additions and 2 deletions
|
|
@ -7,9 +7,10 @@
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "wx/frame.h"
|
#include "wx/frame.h"
|
||||||
#include "wx/hashmap.h"
|
|
||||||
#include "wx/event.h"
|
#include "wx/event.h"
|
||||||
|
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
class wxTestableFrame : public wxFrame
|
class wxTestableFrame : public wxFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -23,7 +24,7 @@ private:
|
||||||
int GetEventCount(wxEventType type);
|
int GetEventCount(wxEventType type);
|
||||||
void ClearEventCount(wxEventType type);
|
void ClearEventCount(wxEventType type);
|
||||||
|
|
||||||
wxLongToLongHashMap m_count;
|
std::unordered_map<wxEventType, int> m_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
class EventCounter
|
class EventCounter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue