]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUSE_STL==1 compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Mar 2006 14:22:03 +0000 (14:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Mar 2006 14:22:03 +0000 (14:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textfile.cpp

index 4887c4e50780beb5fd32a41529c156d354a8d3b5..9bf2947f4346965f5ce9b655c672dd178a12ddfa 100644 (file)
@@ -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 )