Use std::unordered_map<> in wxDFB

Replace a wx hash map with the standard class.
This commit is contained in:
Vadim Zeitlin 2023-04-12 14:03:20 +02:00
parent 6ffe64a664
commit de9038dae0

View file

@ -16,10 +16,11 @@
#include "wx/app.h"
#endif // WX_PRECOMP
#include "wx/hashmap.h"
#include "wx/evtloop.h"
#include "wx/dfb/private.h"
#include <unordered_map>
#define TRACE_EVENTS "events"
#define TRACE_PAINT "paint"
@ -28,9 +29,7 @@
// ============================================================================
// mapping of DirectFB windows to wxTLWs:
WX_DECLARE_HASH_MAP(DFBWindowID, wxNonOwnedWindow*,
wxIntegerHash, wxIntegerEqual,
wxDfbWindowsMap);
using wxDfbWindowsMap = std::unordered_map<DFBWindowID, wxNonOwnedWindow*>;
static wxDfbWindowsMap gs_dfbWindowsMap;
// ============================================================================