compilation fixes after string changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-06-27 20:49:19 +00:00
parent 7f2bcd064c
commit bd0b594dff
9 changed files with 14 additions and 16 deletions

View File

@@ -246,17 +246,15 @@ CustomMacro::~CustomMacro()
delete [] macroBody;
}
void TexOutput(const wxChar *s, bool ordinaryText)
void TexOutput(const wxString& s, bool ordinaryText)
{
int len = wxStrlen(s);
// Update current column, but only if we're guaranteed to
// be ordinary text (not mark-up stuff)
int i;
if (ordinaryText)
for (i = 0; i < len; i++)
for (wxString::const_iterator i = s.begin(); i != s.end(); ++i)
{
if (s[i] == 13 || s[i] == 10)
if (*i == 13 || *i == 10)
currentColumn = 0;
else
currentColumn ++;