while (tokenizer.HasMoreTokens()) {
if (i % 10 == 0) m_Text = (wxString**) realloc(m_Text, sizeof(wxString*) * (i + 10));
tmp = tokenizer.NextToken();
- tmp.Replace(" ", " ", TRUE);
- tmp.Replace(""", "\"", TRUE);
- tmp.Replace("<", "<", TRUE);
- tmp.Replace(">", ">", TRUE);
- tmp.Replace("&", "&", TRUE);
- tmp.Replace("\t", " ", TRUE);
- tmp.Replace("\r", "", TRUE);
+ tmp.Replace(wxT(" "), wxT(" "), TRUE);
+ tmp.Replace(wxT("""), wxT("\""), TRUE);
+ tmp.Replace(wxT("<"), wxT("<"), TRUE);
+ tmp.Replace(wxT(">"), wxT(">"), TRUE);
+ tmp.Replace(wxT("&"), wxT("&"), TRUE);
+ tmp.Replace(wxT("\t"), wxT(" "), TRUE);
+ tmp.Replace(wxT("\r"), wxT(""), TRUE);
m_Text[i++] = new wxString(tmp);
dc.GetTextExtent(tmp, &x, &z, &z);