diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 13:17:11 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 13:17:11 -0600 |
commit | b56293e7b4fb4b253da17119ad153990744dac3b (patch) | |
tree | 8697db5f1aed5b0c4e96a98e7f733d0463537f74 /include/datetime/actions.h | |
parent | fee34f529e85e97cb439ea9fbbb210cffd51a6cf (diff) | |
download | ayatana-indicator-datetime-b56293e7b4fb4b253da17119ad153990744dac3b.tar.gz ayatana-indicator-datetime-b56293e7b4fb4b253da17119ad153990744dac3b.tar.bz2 ayatana-indicator-datetime-b56293e7b4fb4b253da17119ad153990744dac3b.zip |
as per review, constify getters where possible. This isn't always possible due to system APIs asking for non-const pointers.
Diffstat (limited to 'include/datetime/actions.h')
-rw-r--r-- | include/datetime/actions.h | 2 |
1 files changed, 1 insertions, 1 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); |