Use std::unordered_map<> in wxPluginLibrary and wxPluginManager
Replace the old macro-based wx hash map with the standard class.
This commit is contained in:
parent
1d3332674e
commit
ee95fde059
1 changed files with 4 additions and 4 deletions
|
|
@ -21,14 +21,14 @@
|
|||
#if wxUSE_DYNAMIC_LOADER
|
||||
|
||||
#include "wx/dynlib.h"
|
||||
#include "wx/hashmap.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
class WXDLLIMPEXP_FWD_BASE wxPluginLibrary;
|
||||
|
||||
using wxDLManifest = std::unordered_map<wxString, wxPluginLibrary*>;
|
||||
|
||||
WX_DECLARE_STRING_HASH_MAP_WITH_DECL(wxPluginLibrary *, wxDLManifest,
|
||||
class WXDLLIMPEXP_BASE);
|
||||
typedef wxDLManifest wxDLImports;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
@ -128,7 +128,7 @@ public:
|
|||
return m_entry->GetSymbol( symbol, success );
|
||||
}
|
||||
|
||||
static void CreateManifest() { ms_manifest = new wxDLManifest(wxKEY_STRING); }
|
||||
static void CreateManifest() { ms_manifest = new wxDLManifest(); }
|
||||
static void ClearManifest() { delete ms_manifest; ms_manifest = nullptr; }
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue