diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 13:44:12 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 13:44:12 -0600 |
commit | 197309468247c893bdaa37ef47a98db695b2ea78 (patch) | |
tree | e95bd0460940252fc3cc2ff66d88394157e5720f /include/datetime/menu.h | |
parent | 0f384f4c9607b785d7df4da8566fe2b869ef11e4 (diff) | |
download | ayatana-indicator-datetime-197309468247c893bdaa37ef47a98db695b2ea78.tar.gz ayatana-indicator-datetime-197309468247c893bdaa37ef47a98db695b2ea78.tar.bz2 ayatana-indicator-datetime-197309468247c893bdaa37ef47a98db695b2ea78.zip |
following on the review comment covered in the last commit, use shared_ptr<const X> instead of shared_ptr<X> where possible.
Diffstat (limited to 'include/datetime/menu.h')
-rw-r--r-- | include/datetime/menu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/datetime/menu.h b/include/datetime/menu.h index a95be10..7b351c3 100644 --- a/include/datetime/menu.h +++ b/include/datetime/menu.h @@ -70,12 +70,12 @@ private: class MenuFactory { public: - MenuFactory (const std::shared_ptr<Actions>& actions, const std::shared_ptr<State>& state); + MenuFactory (const std::shared_ptr<Actions>& actions, const std::shared_ptr<const State>& state); std::shared_ptr<Menu> buildMenu(Menu::Profile profile); private: std::shared_ptr<Actions> m_actions; - std::shared_ptr<State> m_state; + std::shared_ptr<const State> m_state; }; } // namespace datetime |