wxHtmlWordCell::wxHtmlWordCell(const wxString& word, wxDC& dc) : wxHtmlCell()
{
m_Word = word;
- m_Word.Replace(" ", " ", TRUE);
- m_Word.Replace(""", "\"", TRUE);
- m_Word.Replace("<", "<", TRUE);
- m_Word.Replace(">", ">", TRUE);
- m_Word.Replace("&", "&", TRUE);
+ m_Word.Replace(wxT(" "), wxT(" "), TRUE);
+ m_Word.Replace(wxT("""), wxT("\""), TRUE);
+ m_Word.Replace(wxT("<"), wxT("<"), TRUE);
+ m_Word.Replace(wxT(">"), wxT(">"), TRUE);
+ m_Word.Replace(wxT("&"), wxT("&"), TRUE);
dc.GetTextExtent(m_Word, &m_Width, &m_Height, &m_Descent);
SetCanLiveOnPagebreak(FALSE);
}
wxString wd = tag.GetParam("WIDTH");
if (wd[wd.Length()-1] == '%') {
- sscanf(wd.c_str(), "%i%%", &wdi);
+ wxSscanf(wd.c_str(), wxT("%i%%"), &wdi);
SetWidthFloat(wdi, wxHTML_UNITS_PERCENT);
}
else {
- sscanf(wd.c_str(), "%i", &wdi);
+ wxSscanf(wd.c_str(), wxT("%i"), &wdi);
SetWidthFloat(wdi, wxHTML_UNITS_PIXELS);
}
}