From: Mattia Barbon Date: Mon, 9 Sep 2002 17:35:10 +0000 (+0000) Subject: Fixed MinGW/ANSI (and probably any other C++ compiler, excluding, of course, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/576acdf322ca427842e406bce5e84ceb4f0fbb8f Fixed MinGW/ANSI (and probably any other C++ compiler, excluding, of course, MSVC 5, with which I tested my changes) breakage. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 65309fdef0..f36473d75c 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -303,7 +303,8 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax, ::sprintf(szScratch, s_szFlags, val); } { - wxMB2WXbuf tmp = wxConvLibc.cMB2WX(szScratch); + const wxMB2WXbuf tmp = + wxConvLibc.cMB2WX(szScratch); APPEND_STR(tmp); } @@ -326,7 +327,8 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax, ::sprintf(szScratch, s_szFlags, val); } { - wxMB2WXbuf tmp = wxConvLibc.cMB2WX(szScratch); + const wxMB2WXbuf tmp = + wxConvLibc.cMB2WX(szScratch); APPEND_STR(tmp); } @@ -341,7 +343,8 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax, s_szFlags[flagofs] = '\0'; ::sprintf(szScratch, s_szFlags, val); - wxMB2WXbuf tmp = wxConvLibc.cMB2WX(szScratch); + const wxMB2WXbuf tmp = + wxConvLibc.cMB2WX(szScratch); APPEND_STR(tmp); done = TRUE;