From: Vadim Zeitlin Date: Wed, 29 Mar 2006 14:22:03 +0000 (+0000) Subject: wxUSE_STL==1 compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0cc88b4bb4c92b667a0872ed5ee11a0be47788aa wxUSE_STL==1 compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index 4887c4e507..9bf2947f43 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -142,9 +142,9 @@ bool wxTextFile::OnRead(wxMBConv& conv) // the beginning of the current line, changes inside the loop - const wxChar *lineStart = str.begin(); - const wxChar * const end = str.end(); - for ( const wxChar *p = lineStart; p != end; p++ ) + wxString::const_iterator lineStart = str.begin(); + const wxString::const_iterator end = str.end(); + for ( wxString::const_iterator p = lineStart; p != end; p++ ) { const wxChar ch = *p; switch ( ch )