aboutsummaryrefslogtreecommitdiff
path: root/src/wakeup-timer-powerd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wakeup-timer-powerd.cpp')
-rw-r--r--src/wakeup-timer-powerd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wakeup-timer-powerd.cpp b/src/wakeup-timer-powerd.cpp
index e66c94c..77893c8 100644
--- a/src/wakeup-timer-powerd.cpp
+++ b/src/wakeup-timer-powerd.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2014 Canonical Ltd.
+ * Copyright 2021-2022 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -15,6 +16,7 @@
*
* Authors:
* Charles Kerr <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include <datetime/clock.h>
@@ -38,8 +40,7 @@ class PowerdWakeupTimer::Impl
{
public:
- Impl(const std::shared_ptr<Clock>& clock):
- m_clock(clock),
+ explicit Impl(const std::shared_ptr<Clock>& clock):
m_cancellable(g_cancellable_new())
{
g_bus_get(G_BUS_TYPE_SYSTEM, m_cancellable, on_bus_ready, this);
@@ -269,7 +270,6 @@ private:
***/
core::Signal<> m_timeout;
- const std::shared_ptr<Clock>& m_clock;
DateTime m_wakeup_time;
std::shared_ptr<GDBusConnection> m_bus;