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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user