From dc501b4b28452b097da0703cc77867377340ed13 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 16 Sep 2014 14:55:30 -0500 Subject: LiveClock only needs one Timezone, so give it that instead of a Timezones object --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 54517c9..08d6dc1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -67,8 +67,8 @@ namespace { // create the live objects auto live_settings = std::make_shared(); - auto live_timezones = std::make_shared(live_settings, TIMEZONE_FILE); - auto live_clock = std::make_shared(live_timezones); + auto timezone_ = std::make_shared(TIMEZONE_FILE); + auto live_clock = std::make_shared(timezone_); // create a full-month planner currently pointing to the current month const auto now = live_clock->localtime(); @@ -80,6 +80,7 @@ namespace auto calendar_upcoming = std::make_shared(range_planner, now); // create the state + auto live_timezones = std::make_shared(live_settings, TIMEZONE_FILE); auto state = std::make_shared(); state->settings = live_settings; state->clock = live_clock; -- cgit v1.2.3