X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cf2fe5444acc46687845f8e21de55cbe5ae2f45..7d6a4d96961eac84d05db8bb24c64d39003f6e54:/src/xrc/xmlres.cpp?ds=inline diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index e0ad8d8515..fe712f89d5 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -107,7 +107,7 @@ class wxXmlResourceDataRecords : public wxVector // this is a class so that it can be forward-declared }; -WX_DECLARE_HASH_SET_PTR(int, wxIntegerHash, wxIntegerEqual, wxHashSetInt); +WX_DECLARE_HASH_SET_PTR(int, ::wxIntegerHash, ::wxIntegerEqual, wxHashSetInt); class wxIdRange // Holds data for a particular rangename { @@ -1554,7 +1554,7 @@ wxString wxXmlResourceHandler::GetText(const wxString& param, bool translate) // like "&File..." -- this is illegal in XML, so we use "_File..."): if ( *dt == amp_char ) { - if ( *(++dt) == amp_char ) + if ( dt+1 == str1.end() || *(++dt) == amp_char ) str2 << amp_char; else str2 << wxT('&') << *dt; @@ -2493,7 +2493,7 @@ static inline unsigned XRCIdHash(const char *str_id) static void XRCID_Assign(const wxString& str_id, int value) { - wxScopedCharBuffer buf_id(str_id.mb_str()); + const wxCharBuffer buf_id(str_id.mb_str()); const unsigned index = XRCIdHash(buf_id);