Make wxMessageOutput::Printf() a variadic template function

Don't use wx vararg macros machinery for this function any more and just
implement it in terms of wxString::Format().
This commit is contained in:
Vadim Zeitlin 2022-11-17 17:20:42 +01:00
parent 993a7e4284
commit 37256de7dc
2 changed files with 6 additions and 41 deletions

View file

@ -69,34 +69,6 @@ wxMessageOutput* wxMessageOutput::Set(wxMessageOutput* msgout)
return old;
}
#if !wxUSE_UTF8_LOCALE_ONLY
void wxMessageOutput::DoPrintfWchar(const wxChar *format, ...)
{
va_list args;
va_start(args, format);
wxString out;
out.PrintfV(format, args);
va_end(args);
Output(out);
}
#endif // !wxUSE_UTF8_LOCALE_ONLY
#if wxUSE_UNICODE_UTF8
void wxMessageOutput::DoPrintfUtf8(const char *format, ...)
{
va_list args;
va_start(args, format);
wxString out;
out.PrintfV(format, args);
va_end(args);
Output(out);
}
#endif // wxUSE_UNICODE_UTF8
// ----------------------------------------------------------------------------
// wxMessageOutputBest
// ----------------------------------------------------------------------------