[Libreoffice-commits] .: framework/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Jul 15 06:41:53 PDT 2012


 framework/source/lomenubar/MenuItemInfo.cxx |   10 +++++-----
 framework/source/lomenubar/MenuItemInfo.hxx |   10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 6c4838c13cdc1a6b127e08f1a46883da1b45cfbf
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jul 15 15:41:15 2012 +0200

    These methods can be const
    
    Change-Id: Ia4aa8df3768923f7b5a31fb5158e4a744f4b9788

diff --git a/framework/source/lomenubar/MenuItemInfo.cxx b/framework/source/lomenubar/MenuItemInfo.cxx
index 18c159d..904f82a 100644
--- a/framework/source/lomenubar/MenuItemInfo.cxx
+++ b/framework/source/lomenubar/MenuItemInfo.cxx
@@ -74,31 +74,31 @@ MenuItemInfo::setVisible (gboolean is_visible)
 
 //Getters
 gchar*
-MenuItemInfo::getLabel ()
+MenuItemInfo::getLabel () const
 {
     return m_label;
 }
 
 gboolean
-MenuItemInfo::getEnabled ()
+MenuItemInfo::getEnabled () const
 {
     return m_is_enabled;
 }
 
 gint
-MenuItemInfo::getCheckState ()
+MenuItemInfo::getCheckState () const
 {
     return m_check_state;
 }
 
 const gchar*
-MenuItemInfo::getCheckType ()
+MenuItemInfo::getCheckType () const
 {
     return m_check_type;
 }
 
 gboolean
-MenuItemInfo::getVisible ()
+MenuItemInfo::getVisible () const
 {
     return m_is_visible;
 }
diff --git a/framework/source/lomenubar/MenuItemInfo.hxx b/framework/source/lomenubar/MenuItemInfo.hxx
index 72d411c..0171795 100644
--- a/framework/source/lomenubar/MenuItemInfo.hxx
+++ b/framework/source/lomenubar/MenuItemInfo.hxx
@@ -46,11 +46,11 @@ class MenuItemInfo {
     void setVisible (gboolean is_visible);
 
     //Getters
-    gchar*       getLabel ();
-    gboolean     getEnabled ();
-    gint         getCheckState ();
-    const gchar* getCheckType ();
-    gboolean     getVisible ();
+    gchar*       getLabel () const;
+    gboolean     getEnabled () const;
+    gint         getCheckState () const;
+    const gchar* getCheckType () const;
+    gboolean     getVisible () const;
 };
 #endif // __MENU_ITEM_INFO_HXX__
 


More information about the Libreoffice-commits mailing list