changing to iterator

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-03-26 20:38:43 +00:00
parent 13d09fc3d4
commit 1a39a1d7c0

View File

@@ -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'):