X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c6cd4a86b843afa877feaeb207b936dd7a4b1f3..b37023dca3a8627cee3fd26bf9cd9dae46e4a5b1:/src/html/htmltag.cpp diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index e8d244a2ee..0d71df7cf7 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -57,7 +57,7 @@ IMPLEMENT_CLASS(wxHtmlTagsCache,wxObject) #define CACHE_INCREMENT 64 -inline bool wxIsCDATAElement(const wxChar *tag) +bool wxIsCDATAElement(const wxChar *tag) { return (wxStrcmp(tag, _T("SCRIPT")) == 0) || (wxStrcmp(tag, _T("STYLE")) == 0); @@ -131,7 +131,9 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source) // see if it matches int match_pos = 0; while (pos < lng && match_pos < tag_len && src[pos] != '>' && src[pos] != '<') { - if (wxToupper(src[pos]) == tagBuffer[match_pos]) { + // cast to wxChar needed to suppress warning in + // Unicode build + if ((wxChar)wxToupper(src[pos]) == tagBuffer[match_pos]) { ++match_pos; } else if (src[pos] == wxT(' ') || src[pos] == wxT('\n') ||