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
This commit is contained in:
Mattia Barbon 2002-09-09 17:35:10 +00:00
parent 9bbfd96101
commit 576acdf322

View File

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