aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-02 23:44:00 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-02 23:44:00 -0500
commit593c16de05fe3806edeeb3bc105ce63b71b8b545 (patch)
tree8ff456e24b469852c3962d3ca0c347785b634ab3 /src
parentdb764f321a1450da886c672b3ccd82d1e5dfedd6 (diff)
downloadayatana-indicator-datetime-593c16de05fe3806edeeb3bc105ce63b71b8b545.tar.gz
ayatana-indicator-datetime-593c16de05fe3806edeeb3bc105ce63b71b8b545.tar.bz2
ayatana-indicator-datetime-593c16de05fe3806edeeb3bc105ce63b71b8b545.zip
minor copyediting: rename a variable for better clarity
Diffstat (limited to 'src')
-rw-r--r--src/planner-snooze.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/planner-snooze.cpp b/src/planner-snooze.cpp
index 6d427ca..51ad0d2 100644
--- a/src/planner-snooze.cpp
+++ b/src/planner-snooze.cpp
@@ -55,10 +55,10 @@ public:
{
Appointment appt = appt_in;
- // adjust the time
- const auto appt_length_secs = appt.end - appt.begin;
+ // reschedule the alarm to go off N minutes from now
+ const auto alarm_duration_secs = appt.end - appt.begin;
appt.begin = m_clock->localtime().add_full(0,0,0,0,m_settings->snooze_duration.get(),0);
- appt.end = appt.begin.add_full(0,0,0,0,0,appt_length_secs);
+ appt.end = appt.begin.add_full(0,0,0,0,0,alarm_duration_secs);
// give it a new ID
gchar* uid = e_uid_new();