]> git.saurik.com Git - wxWidgets.git/commitdiff
remove const from by-value return type, it's useless
authorPaul Cornett <paulcor@bullseye.com>
Wed, 17 Nov 2010 05:57:21 +0000 (05:57 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 17 Nov 2010 05:57:21 +0000 (05:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/menu.h
include/wx/gtk1/menu.h
src/gtk/menu.cpp
src/gtk1/menu.cpp

index 61a9bf631a4fba92697623b11887527c0841ad67..506d1986c0e9c2f52607a0e25ab0c15ab34c36c1 100644 (file)
@@ -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);
 
index f2a92252f758c88b94a12d94216994ded29f98c9..aca498bcc29b92957842a038a007e418e9e08768 100644 (file)
@@ -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);
 
index 848e2f5ae404e0807dd9304abfceb6dd73fce43c..a7d37044c4c732472293943156d71bd3261e4123 100644 (file)
@@ -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());
 }
index d6a9cc05f78030664ae1ba7820d0ed5660f09a4d..c0e9ffe315c9d94032a77d97455d099bd83637cd 100644 (file)
@@ -964,7 +964,7 @@ wxMenu::~wxMenu()
    }
 }
 
-const wxString wxMenu::GetTitle() const
+wxString wxMenu::GetTitle() const
 {
     return wxConvertMnemonicsFromGTK(wxMenuBase::GetTitle());
 }