From 1a39a1d7c049fbeac332fb9bdd53989eb9fb4a64 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 26 Mar 2009 20:38:43 +0000 Subject: [PATCH] changing to iterator git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/datetimefmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/datetimefmt.cpp b/src/common/datetimefmt.cpp index c0bfdf5d55..aa0dd5c83e 100644 --- a/src/common/datetimefmt.cpp +++ b/src/common/datetimefmt.cpp @@ -1078,7 +1078,7 @@ static wxString TranslateFromUnicodeFormat( const wxString& fmt) wxChar chLast = _T('\0'); size_t lastCount = 0; - for ( const wxChar *p = fmt; /* NUL handled inside */; p++ ) + for ( wxString::const_iterator p = fmt.begin(); /* NUL handled inside */; p++ ) { if ( *p == chLast ) { @@ -1086,7 +1086,7 @@ static wxString TranslateFromUnicodeFormat( const wxString& fmt) continue; } - switch ( *p ) + switch ( (char) *p ) { // these characters come in groups, start counting them case _T('d'): -- 2.45.2