diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 0f0ded3abd..e676e49896 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -2211,7 +2211,7 @@ void wxPostScriptDC::DoPsPrintfFormat(const wxChar *fmt, ... ) void wxPostScriptDC::PsPrint( const wxString& str ) { - wxWX2MBbuf psdata(str.mb_str(wxConvUTF8)); + const wxWX2MBbuf psdata(str.mb_str(wxConvUTF8)); wxPostScriptPrintNativeData *data = (wxPostScriptPrintNativeData *) m_printData.GetNativeData();