From 96a3acb72cb045e6327e1d8a30b3462a500b5ae4 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 17 Nov 2010 05:57:21 +0000 Subject: [PATCH] remove const from by-value return type, it's useless git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/menu.h | 2 +- include/wx/gtk1/menu.h | 2 +- src/gtk/menu.cpp | 2 +- src/gtk1/menu.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index 61a9bf631a..506d1986c0 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -79,7 +79,7 @@ public: wxLayoutDirection GetLayoutDirection() const; // Returns the title, with mnemonics translated to wx format - const wxString GetTitle() const; + wxString GetTitle() const; // TODO: virtual void SetTitle(const wxString& title); diff --git a/include/wx/gtk1/menu.h b/include/wx/gtk1/menu.h index f2a92252f7..aca498bcc2 100644 --- a/include/wx/gtk1/menu.h +++ b/include/wx/gtk1/menu.h @@ -74,7 +74,7 @@ public: virtual wxMenuItem* DoRemove(wxMenuItem *item); // Returns the title, with mnemonics translated to wx format - const wxString GetTitle() const; + wxString GetTitle() const; // TODO: virtual void SetTitle(const wxString& title); diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 848e2f5ae4..a7d37044c4 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -747,7 +747,7 @@ wxLayoutDirection wxMenu::GetLayoutDirection() const return wxWindow::GTKGetLayout(m_owner); } -const wxString wxMenu::GetTitle() const +wxString wxMenu::GetTitle() const { return wxConvertMnemonicsFromGTK(wxMenuBase::GetTitle()); } diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index d6a9cc05f7..c0e9ffe315 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -964,7 +964,7 @@ wxMenu::~wxMenu() } } -const wxString wxMenu::GetTitle() const +wxString wxMenu::GetTitle() const { return wxConvertMnemonicsFromGTK(wxMenuBase::GetTitle()); }