use wxFormatString helper class for 'vararg' functions' format argument; this prepares the code for removal of implicit wxString conversion to char* in STL build and also fixes VC6 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -477,7 +477,7 @@ WXDLLIMPEXP_BASE const wxChar* wxSysErrorMsg(unsigned long nErrCode = 0);
|
||||
extern void WXDLLIMPEXP_BASE \
|
||||
wxDoLog##level##Utf8(const char *format, ...); \
|
||||
WX_DEFINE_VARARG_FUNC_VOID(wxLog##level, \
|
||||
1, (const wxString&), \
|
||||
1, (const wxFormatString&), \
|
||||
wxDoLog##level##Wchar, wxDoLog##level##Utf8) \
|
||||
DECLARE_LOG_FUNCTION_WATCOM(level) \
|
||||
extern void WXDLLIMPEXP_BASE wxVLog##level(const wxString& format, \
|
||||
@@ -511,7 +511,7 @@ WXDLLIMPEXP_BASE const wxChar* wxSysErrorMsg(unsigned long nErrCode = 0);
|
||||
extern void expdecl wxDoLog##level##Utf8(argclass arg, \
|
||||
const char *format, ...); \
|
||||
WX_DEFINE_VARARG_FUNC_VOID(wxLog##level, \
|
||||
2, (argclass, const wxString&), \
|
||||
2, (argclass, const wxFormatString&), \
|
||||
wxDoLog##level##Wchar, wxDoLog##level##Utf8) \
|
||||
DECLARE_LOG_FUNCTION2_EXP_WATCOM(level, argclass, arg, expdecl) \
|
||||
extern void expdecl wxVLog##level(argclass arg, \
|
||||
|
Reference in New Issue
Block a user