aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/datetime/actions.h2
-rw-r--r--include/datetime/menu.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/include/datetime/actions.h b/include/datetime/actions.h
index 6817b4c..99e78f5 100644
--- a/include/datetime/actions.h
+++ b/include/datetime/actions.h
@@ -51,7 +51,7 @@ public:
virtual void set_location(const std::string& zone, const std::string& name)=0;
void set_calendar_date(const DateTime&);
GActionGroup* action_group();
- std::shared_ptr<State> state();
+ const std::shared_ptr<State> state() const;
protected:
Actions(const std::shared_ptr<State>& state);
diff --git a/include/datetime/menu.h b/include/datetime/menu.h
index 526cd9f..5821e33 100644
--- a/include/datetime/menu.h
+++ b/include/datetime/menu.h
@@ -72,7 +72,6 @@ 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();
private:
std::shared_ptr<Actions> m_actions;