From 7a884e16cb976f72abfbf016c59290e158eb26bf Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 28 Nov 2002 18:18:10 +0000 Subject: [PATCH] Fix MinGW GCC 3.2/Unicode compilation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/intl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 12d5c13bb6..f730c05e84 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -706,7 +706,7 @@ bool wxLocale::Init(int language, int flags) return FALSE; } #elif defined(__WIN32__) - wxMB2WXbuf retloc = wxT("C"); + wxMB2WXbuf retloc(wxT("C")); if (language != wxLANGUAGE_DEFAULT) { if (info->WinLang == 0) @@ -720,7 +720,7 @@ bool wxLocale::Init(int language, int flags) SORT_DEFAULT); if (SetThreadLocale(lcid)) { - wxMB2WXbuf tmp = wxSetlocale(LC_ALL, wxEmptyString); + wxMB2WXbuf tmp(wxSetlocale(LC_ALL, wxEmptyString)); retloc = tmp; } else @@ -745,7 +745,7 @@ bool wxLocale::Init(int language, int flags) } else { - wxMB2WXbuf tmp = wxSetlocale(LC_ALL, locale); + wxMB2WXbuf tmp(wxSetlocale(LC_ALL, locale)); retloc = tmp; } } @@ -753,7 +753,7 @@ bool wxLocale::Init(int language, int flags) } else { - wxMB2WXbuf tmp = wxSetlocale(LC_ALL, wxEmptyString); + wxMB2WXbuf tmp(wxSetlocale(LC_ALL, wxEmptyString)); retloc = tmp; }