fix SF bug 1640955
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
065761f297
commit
b2fde0cfed
@ -18,12 +18,6 @@
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if defined(__BORLANDC__) && !defined(__WXDEBUG__)
|
||||
// There's a bug in Borland's compiler that breaks wxLocale with -O2,
|
||||
// so make sure that flag is not used for this file:
|
||||
#pragma option -O1
|
||||
#endif
|
||||
|
||||
#ifdef __EMX__
|
||||
// The following define is needed by Innotek's libc to
|
||||
// make the definition of struct localeconv available.
|
||||
@ -2505,7 +2499,9 @@ const wxLanguageInfo *wxLocale::GetLanguageInfo(int lang)
|
||||
{
|
||||
if ( ms_languagesDB->Item(i).Language == lang )
|
||||
{
|
||||
return &ms_languagesDB->Item(i);
|
||||
// We need to create a temporary here in order to make this work with BCC in final build mode
|
||||
wxLanguageInfo *ptr = &ms_languagesDB->Item(i);
|
||||
return ptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user