aboutsummaryrefslogtreecommitdiff
path: root/src/clock-live.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-30 13:44:12 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-30 13:44:12 -0600
commit197309468247c893bdaa37ef47a98db695b2ea78 (patch)
treee95bd0460940252fc3cc2ff66d88394157e5720f /src/clock-live.cpp
parent0f384f4c9607b785d7df4da8566fe2b869ef11e4 (diff)
downloadayatana-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/clock-live.cpp')
-rw-r--r--src/clock-live.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clock-live.cpp b/src/clock-live.cpp
index 69ebda7..7c9db40 100644
--- a/src/clock-live.cpp
+++ b/src/clock-live.cpp
@@ -59,7 +59,7 @@ class LiveClock::Impl
{
public:
- Impl(LiveClock& owner, const std::shared_ptr<Timezones>& tzd):
+ Impl(LiveClock& owner, const std::shared_ptr<const Timezones>& tzd):
m_owner(owner),
m_timezones(tzd)
{
@@ -135,13 +135,13 @@ protected:
LiveClock& m_owner;
GTimeZone* m_timezone = nullptr;
- std::shared_ptr<Timezones> m_timezones;
+ std::shared_ptr<const Timezones> m_timezones;
DateTime m_prev_datetime;
unsigned int m_timer = 0;
};
-LiveClock::LiveClock(const std::shared_ptr<Timezones>& tzd):
+LiveClock::LiveClock(const std::shared_ptr<const Timezones>& tzd):
p(new Impl(*this, tzd))
{
}