const-ness warnings in non-Unicode again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
1999-04-16 17:26:23 +00:00
parent b2219150ca
commit 9626e0bfc6
2 changed files with 3 additions and 3 deletions

View File

@@ -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).

View File

@@ -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++)
{