speedup a little the parser by converting gccXML ID attributes to numbers, instead of storing them as strings; remove 2nd argument to GetAttribute() calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -253,11 +253,13 @@ protected:
|
||||
};
|
||||
|
||||
#if 1
|
||||
WX_DECLARE_STRING_HASH_MAP( wxString, wxStringHashMap );
|
||||
WX_DECLARE_HASH_MAP( unsigned long, wxString,
|
||||
wxIntegerHash, wxIntegerEqual,
|
||||
wxTypeIdHashMap );
|
||||
#else
|
||||
#include <map>
|
||||
typedef std::basic_string<char> stlString;
|
||||
typedef std::map<stlString, stlString> wxStringHashMap;
|
||||
typedef std::map<unsigned long, stlString> wxTypeIdHashMap;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -280,7 +282,7 @@ public:
|
||||
|
||||
bool Parse(const wxString& filename);
|
||||
bool ParseMethod(const wxXmlNode *p,
|
||||
const wxStringHashMap& types,
|
||||
const wxTypeIdHashMap& types,
|
||||
wxMethod& m);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user