aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-04-06 13:29:07 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-04-06 13:29:07 -0500
commit006858f8955ebeda75ce6cca152bbf42af7da3da (patch)
tree2f007f7384c4a3e6f95bc8fcbc4213d62a9264d1 /src
parent9977f16b1f6e76fc3ac79383a1259340497af4a2 (diff)
downloadayatana-indicator-datetime-006858f8955ebeda75ce6cca152bbf42af7da3da.tar.gz
ayatana-indicator-datetime-006858f8955ebeda75ce6cca152bbf42af7da3da.tar.bz2
ayatana-indicator-datetime-006858f8955ebeda75ce6cca152bbf42af7da3da.zip
in SimpleAlarmQueue, reduce a lambda capture to only the fields it needs
Diffstat (limited to 'src')
-rw-r--r--src/alarm-queue-simple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alarm-queue-simple.cpp b/src/alarm-queue-simple.cpp
index ae7722c..d04c0fc 100644
--- a/src/alarm-queue-simple.cpp
+++ b/src/alarm-queue-simple.cpp
@@ -47,7 +47,7 @@ public:
requeue();
});
- m_clock->minute_changed.connect([=]{
+ m_clock->minute_changed.connect([this]{
const auto now = m_clock->localtime();
constexpr auto skew_threshold_usec = int64_t{90} * G_USEC_PER_SEC;
const bool clock_jumped = std::abs(now - m_datetime) > skew_threshold_usec;