summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-07-15 15:41:15 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-07-15 15:41:15 +0200
commit6c4838c13cdc1a6b127e08f1a46883da1b45cfbf (patch)
treea2a1a13f5529fb26fc181fad7024204d3d1c1e19 /framework
parentc64e33efb0f26c9bc9298c7e902efe9af22ca500 (diff)
These methods can be const
Change-Id: Ia4aa8df3768923f7b5a31fb5158e4a744f4b9788
Diffstat (limited to 'framework')
-rw-r--r--framework/source/lomenubar/MenuItemInfo.cxx10
-rw-r--r--framework/source/lomenubar/MenuItemInfo.hxx10
2 files changed, 10 insertions, 10 deletions
diff --git a/framework/source/lomenubar/MenuItemInfo.cxx b/framework/source/lomenubar/MenuItemInfo.cxx
index 18c159dbfd06..904f82a17da3 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 72d411c4c8d6..017179538d7c 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__