fixed vararg functions with format argument to not use wxString or reference argument (the latter is invalid C++, the former doesn't work with Watcom and produces at least warnings with GCC 3.3)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,17 +95,26 @@ public:
|
||||
static void SetResolution(int ppi);
|
||||
static int GetResolution();
|
||||
|
||||
WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, 1, (const wxString&), DoPsPrintfFormat)
|
||||
WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, 1, (const wxString&),
|
||||
DoPsPrintfFormatWchar, DoPsPrintfFormatUtf8)
|
||||
#ifdef __WATCOMC__
|
||||
// workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351
|
||||
WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, 1, (const char*), DoPsPrintfFormat)
|
||||
WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, 1, (const wchar_t*), DoPsPrintfFormat)
|
||||
WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, 1, (const char*),
|
||||
DoPsPrintfFormatWchar, DoPsPrintfFormatUtf8)
|
||||
WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, 1, (const wchar_t*),
|
||||
DoPsPrintfFormatWchar, DoPsPrintfFormatUtf8)
|
||||
#endif
|
||||
|
||||
void PsPrint( const wxString& psdata );
|
||||
void PsPrint( int ch );
|
||||
|
||||
private:
|
||||
void DoPsPrintfFormat(const wxString& fmt, ... );
|
||||
#if !wxUSE_UTF8_LOCALE_ONLY
|
||||
void DoPsPrintfFormatWchar(const wxChar *fmt, ... );
|
||||
#endif
|
||||
#if wxUSE_UNICODE_UTF8
|
||||
void DoPsPrintfFormatUtf8(const char *fmt, ... );
|
||||
#endif
|
||||
|
||||
static float ms_PSScaleFactor;
|
||||
|
||||
|
Reference in New Issue
Block a user