aboutsummaryrefslogtreecommitdiff
path: root/src/planner-eds.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-09 12:41:45 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-09 12:41:45 -0500
commited9d932ef17fd55d8858a9391ab81d237a6be5ad (patch)
tree999018bd06bc73ac89b4f41054b43f856e731ac7 /src/planner-eds.cpp
parent422401c1b00f0dfa8926acba116e33b29f2ad7d7 (diff)
downloadayatana-indicator-datetime-ed9d932ef17fd55d8858a9391ab81d237a6be5ad.tar.gz
ayatana-indicator-datetime-ed9d932ef17fd55d8858a9391ab81d237a6be5ad.tar.bz2
ayatana-indicator-datetime-ed9d932ef17fd55d8858a9391ab81d237a6be5ad.zip
in EdsPlanner, use a Timezone instead of Timezones object
Diffstat (limited to 'src/planner-eds.cpp')
-rw-r--r--src/planner-eds.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp
index 8eeca43..f47c2e9 100644
--- a/src/planner-eds.cpp
+++ b/src/planner-eds.cpp
@@ -44,10 +44,10 @@ public:
Impl(PlannerEds& owner,
const std::shared_ptr<Clock>& clock,
- const std::shared_ptr<Timezones>& timezones):
+ const std::shared_ptr<Timezone>& timezone):
m_owner(owner),
m_clock(clock),
- m_timezones(timezones),
+ m_timezone(timezone),
m_cancellable(g_cancellable_new())
{
e_source_registry_new(m_cancellable, on_source_registry_ready, this);
@@ -394,7 +394,7 @@ private:
**/
icaltimezone * default_timezone = nullptr;
- const auto tz = m_timezones->timezone.get().c_str();
+ const auto tz = m_timezone->timezone.get().c_str();
if (tz && *tz)
{
default_timezone = icaltimezone_get_builtin_timezone(tz);
@@ -546,7 +546,7 @@ private:
PlannerEds& m_owner;
std::shared_ptr<Clock> m_clock;
- std::shared_ptr<Timezones> m_timezones;
+ std::shared_ptr<Timezone> m_timezone;
std::set<ESource*> m_sources;
std::map<ESource*,ECalClient*> m_clients;
std::map<ESource*,ECalClientView*> m_views;
@@ -558,8 +558,8 @@ private:
};
PlannerEds::PlannerEds(const std::shared_ptr<Clock>& clock,
- const std::shared_ptr<Timezones>& timezones):
- p(new Impl(*this, clock, timezones)) {}
+ const std::shared_ptr<Timezone>& timezone):
+ p(new Impl(*this, clock, timezone)) {}
PlannerEds::~PlannerEds() =default;