From e06937ad73a5723b436530cc079e0fe847545785 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Thu, 15 Apr 1999 14:51:31 +0000 Subject: [PATCH] Compiler warning in non-Unicode mode fixed. (No, does not fix a real problem, the library is still compiling here) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/menu.cpp | 2 +- src/gtk1/menu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 44dcd1ba04..d2df6c95f6 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -532,7 +532,7 @@ void wxMenu::Append( int id, const wxString &item, const wxString &helpStr, bool wxStrcpy( buf, _T("/") ); wxStrcat( buf, text ); - wxWX2MBbuf pbuf = wxConv_current->cWX2MB(buf); + const wxWX2MBbuf pbuf = wxConv_current->cWX2MB(buf); GtkItemFactoryEntry entry; entry.path = MBSTRINGCAST pbuf; entry.accelerator = (gchar*) NULL; diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 44dcd1ba04..d2df6c95f6 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -532,7 +532,7 @@ void wxMenu::Append( int id, const wxString &item, const wxString &helpStr, bool wxStrcpy( buf, _T("/") ); wxStrcat( buf, text ); - wxWX2MBbuf pbuf = wxConv_current->cWX2MB(buf); + const wxWX2MBbuf pbuf = wxConv_current->cWX2MB(buf); GtkItemFactoryEntry entry; entry.path = MBSTRINGCAST pbuf; entry.accelerator = (gchar*) NULL; -- 2.45.2