From 616ae1e8434e55bc11dcd0570e96a610bc7e88e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 8 Sep 2012 10:53:40 +0000 Subject: [PATCH] Fix VC6 compilation after r72430. VC6 doesn't handle for loop scope correctly. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/translation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/translation.cpp b/src/common/translation.cpp index de975d5332..0aea6979b3 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -149,11 +149,11 @@ wxString GetPreferredUILanguage(const wxArrayString& available) } LogTraceArray(" - system preferred languages", preferred); - for ( wxArrayString::const_iterator i = preferred.begin(); - i != preferred.end(); - ++i ) + for ( wxArrayString::const_iterator j = preferred.begin(); + j != preferred.end(); + ++j ) { - wxString lang(*i); + wxString lang(*j); lang.Replace("-", "_"); if ( available.Index(lang) != wxNOT_FOUND ) return lang; -- 2.45.2