diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-02 23:44:00 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-09-02 23:44:00 -0500 |
commit | 593c16de05fe3806edeeb3bc105ce63b71b8b545 (patch) | |
tree | 8ff456e24b469852c3962d3ca0c347785b634ab3 | |
parent | db764f321a1450da886c672b3ccd82d1e5dfedd6 (diff) | |
download | ayatana-indicator-datetime-593c16de05fe3806edeeb3bc105ce63b71b8b545.tar.gz ayatana-indicator-datetime-593c16de05fe3806edeeb3bc105ce63b71b8b545.tar.bz2 ayatana-indicator-datetime-593c16de05fe3806edeeb3bc105ce63b71b8b545.zip |
minor copyediting: rename a variable for better clarity
-rw-r--r-- | src/planner-snooze.cpp | 6 |
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(); |