diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 12:45:50 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 12:45:50 -0600 |
commit | d2caa37e18191c31d866dd3042b676c135bae50d (patch) | |
tree | 603cdc81a45c1d6e5250e72954f3876b56ca24e1 /include/datetime/menu.h | |
parent | 9752ca1cd3e75e1245ebb8dcb4719503e332a352 (diff) | |
download | ayatana-indicator-datetime-d2caa37e18191c31d866dd3042b676c135bae50d.tar.gz ayatana-indicator-datetime-d2caa37e18191c31d866dd3042b676c135bae50d.tar.bz2 ayatana-indicator-datetime-d2caa37e18191c31d866dd3042b676c135bae50d.zip |
as per review, don't inline getters
Diffstat (limited to 'include/datetime/menu.h')
-rw-r--r-- | include/datetime/menu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/datetime/menu.h b/include/datetime/menu.h index fcd709f..f097b02 100644 --- a/include/datetime/menu.h +++ b/include/datetime/menu.h @@ -43,9 +43,9 @@ class Menu public: enum Profile { Desktop, DesktopGreeter, Phone, PhoneGreeter, NUM_PROFILES }; enum Section { Calendar, Appointments, Locations, Settings, NUM_SECTIONS }; - const std::string& name() const { return m_name; } - Profile profile() const { return m_profile; } - GMenuModel* menu_model() { return G_MENU_MODEL(m_menu); } + const std::string& name() const; + Profile profile() const; + GMenuModel* menu_model(); protected: Menu (Profile profile_in, const std::string& name_in): m_profile(profile_in), m_name(name_in) {} @@ -72,7 +72,7 @@ class MenuFactory public: MenuFactory (std::shared_ptr<Actions>& actions, std::shared_ptr<State>& state); std::shared_ptr<Menu> buildMenu(Menu::Profile profile); - std::shared_ptr<State> state() { return m_state; } + std::shared_ptr<State> state(); private: std::shared_ptr<Actions> m_actions; |