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
This commit is contained in:
Václav Slavík
2012-09-08 10:53:40 +00:00
parent c4dae34da8
commit 616ae1e843

View File

@@ -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;