provide both const char* and const wchar_t* implicit conversion of wxCStrData regardless of the build type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2206,11 +2206,13 @@ void wxPostScriptDC::DoPsPrintfFormat(const wxChar *fmt, ... )
|
||||
va_list argptr;
|
||||
va_start(argptr, fmt);
|
||||
|
||||
PsPrint( wxString::FormatV( fmt, argptr ).c_str() );
|
||||
PsPrint( wxString::FormatV( fmt, argptr ) );
|
||||
}
|
||||
|
||||
void wxPostScriptDC::PsPrint( const char* psdata )
|
||||
void wxPostScriptDC::PsPrint( const wxString& str )
|
||||
{
|
||||
wxWX2MBbuf psdata(str.mb_str(wxConvUTF8));
|
||||
|
||||
wxPostScriptPrintNativeData *data =
|
||||
(wxPostScriptPrintNativeData *) m_printData.GetNativeData();
|
||||
|
||||
|
Reference in New Issue
Block a user