]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
renamed Number method (should be GetCount)
[wxWidgets.git] / src / html / htmlpars.cpp
index c45c2dfa29b3ec409aeb66cd7efd2e8d75d74f52..31bc825d5cea2c77889cb2ccd1f9671338543885 100644 (file)
@@ -49,8 +49,9 @@ public:
 WX_DECLARE_OBJARRAY(wxHtmlTextPiece, wxHtmlTextPieces);
 WX_DEFINE_OBJARRAY(wxHtmlTextPieces);
 
-struct wxHtmlParserState
+class wxHtmlParserState
 {
+public:
     wxHtmlTag         *m_curTag;
     wxHtmlTag         *m_tags;
     wxHtmlTextPieces  *m_textPieces;
@@ -487,7 +488,7 @@ wxChar wxHtmlEntitiesParser::GetCharForCode(unsigned code)
     wbuf[0] = (wchar_t)code;
     wbuf[1] = 0;
     wxMBConv *conv = m_conv ? m_conv : &wxConvLocal;
-    if (conv->WC2MB(buf, wbuf, 1) == (size_t)-1)
+    if (conv->WC2MB(buf, wbuf, 2) == (size_t)-1)
         return '?';
     return buf[0];
 #else