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 /src/formatter.cpp | |
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 'src/formatter.cpp')
-rw-r--r-- | src/formatter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/formatter.cpp b/src/formatter.cpp index a15c7f8..638eac4 100644 --- a/src/formatter.cpp +++ b/src/formatter.cpp @@ -118,7 +118,7 @@ class Formatter::Impl { public: - Impl(Formatter* owner, const std::shared_ptr<Clock>& clock): + Impl(Formatter* owner, const std::shared_ptr<const Clock>& clock): m_owner(owner), m_clock(clock) { @@ -208,14 +208,14 @@ private: guint m_relative_timer = 0; public: - std::shared_ptr<Clock> m_clock; + std::shared_ptr<const Clock> m_clock; }; /*** **** ***/ -Formatter::Formatter(const std::shared_ptr<Clock>& clock): +Formatter::Formatter(const std::shared_ptr<const Clock>& clock): p(new Formatter::Impl(this, clock)) { } |