From 9626e0bfc6ae68c9068cdca7a9a43c8e820c5eb9 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Fri, 16 Apr 1999 17:26:23 +0000 Subject: [PATCH] const-ness warnings in non-Unicode again. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/dcpsg.cpp | 4 ++-- src/generic/prop.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 1d6dc9b7be..a611e4881d 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1090,7 +1090,7 @@ void wxPostScriptDC::DrawText( const wxString& text, long x, long y, bool WXUNUS *m_pstream << XLOG2DEV(x) << " " << YLOG2DEV(by) << " moveto\n"; *m_pstream << "("; - wxWX2MBbuf textbuf = text.mb_str(); + const wxWX2MBbuf textbuf = text.mb_str(); int len = strlen (textbuf); int i; for (i = 0; i < len; i++) @@ -1572,7 +1572,7 @@ void wxPostScriptDC::GetTextExtent( const wxString& string, long *x, long *y, wxCHECK_RET( x, _T("GetTextExtent: x == NULL") ); wxCHECK_RET( y, _T("GetTextExtent: y == NULL") ); - wxWX2MBbuf strbuf = string.mb_str(); + const wxWX2MBbuf strbuf = string.mb_str(); #if !USE_AFM_FOR_POSTSCRIPT /* Provide a VERY rough estimate (avoid using it). diff --git a/src/generic/prop.cpp b/src/generic/prop.cpp index 6037890fec..058a0d5026 100644 --- a/src/generic/prop.cpp +++ b/src/generic/prop.cpp @@ -535,7 +535,7 @@ void wxPropertyValue::WritePropertyType(ostream& stream) // Write as any othe { // stream << "\""; int i; - wxWX2MBbuf strbuf = wxConv_libc.cWX2MB(m_value.string); + const wxWX2MBbuf strbuf = wxConv_libc.cWX2MB(m_value.string); int len = strlen(strbuf); for (i = 0; i < len; i++) { -- 2.47.2