diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 137e6978eb..7473d9a206 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -24,11 +24,10 @@ #include "wx/filename.h" #include "wx/wfstream.h" #include "wx/utils.h" -#include "wx/hashset.h" #include "wx/mimetype.h" #include "wx/vector.h" -WX_DECLARE_HASH_SET(wxString, wxStringHash, wxStringEqual, StringSet); +#include class XRCWidgetData { @@ -51,7 +50,7 @@ class XRCWndClassData private: wxString m_className; wxString m_parentClassName; - StringSet m_ancestorClassNames; + std::unordered_set m_ancestorClassNames; ArrayOfXRCWidgetData m_wdata; void BrowseXmlNode(wxXmlNode* node) @@ -184,11 +183,9 @@ public: wxT(" }\n") wxT("};\n")); - for ( StringSet::const_iterator it = m_ancestorClassNames.begin(); - it != m_ancestorClassNames.end(); - ++it ) + for ( const auto& name : m_ancestorClassNames ) { - file.Write(m_className + wxT("(") + *it + wxT(" *parent){\n") + + file.Write(m_className + wxT("(") + name + wxT(" *parent){\n") + wxT(" InitWidgetsFromXRC((wxWindow *)parent);\n") wxT(" }\n") wxT("};\n"));