git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45526
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
WX_DEFINE_VARARG_FUNC_VOID(Printf, DoPrintf)
protected:
WX_DEFINE_VARARG_FUNC_VOID(Printf, DoPrintf)
protected:
- void DoPrintf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2;
+ // NB: this is pure virtual so that it can be implemented in dllexported
+ // wxMessagOutput class
+ virtual void DoPrintf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2 = 0;
+
+ // called by DoPrintf() to output formatted string
virtual void Output(const wxString& str) = 0;
};
virtual void Output(const wxString& str) = 0;
};
// sets the global wxMessageOutput instance; returns the previous one
static wxMessageOutput* Set(wxMessageOutput* msgout);
// sets the global wxMessageOutput instance; returns the previous one
static wxMessageOutput* Set(wxMessageOutput* msgout);
+protected:
+ virtual void DoPrintf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2;
+ virtual void Output(const wxString& str) = 0;
+
private:
static wxMessageOutput* ms_msgOut;
};
private:
static wxMessageOutput* ms_msgOut;
};
-void wxMessageOutputBase::DoPrintf(const wxChar* format, ...)
+void wxMessageOutput::DoPrintf(const wxChar* format, ...)
{
va_list args;
va_start(args, format);
{
va_list args;
va_start(args, format);