Commit 15381eb3 authored by David Jarvie's avatar David Jarvie
Browse files

Fix clazy warning

parent 27377ca2
Pipeline #93074 passed with stage
in 5 minutes and 33 seconds
......@@ -4786,7 +4786,6 @@ void KAEventPrivate::calcNextWorkingTime(const DateTime &nextTrigger) const
// Check the next seasonal time change (for an arbitrary 10 times,
// even though that might not guarantee the correct result)
QDate dateRecur = kdtRecur.date();
int dayRecur = dateRecur.dayOfWeek() - 1; // Monday = 0
int repeatNum = kdtRecur.secsTo(kdt) / repeatFreq;
kdt = kdtRecur.addSecs(repeatNum * repeatFreq);
......@@ -4852,7 +4851,7 @@ void KAEventPrivate::calcNextWorkingTime(const DateTime &nextTrigger) const
nextOccurrence(kdtRecur, newdt, KAEvent::IGNORE_REPETITION);
kdtNextRecur = newdt.effectiveKDateTime();
dateRecur = kdtRecur.date();
dayRecur = dateRecur.dayOfWeek() - 1;
const int dayRecur = dateRecur.dayOfWeek() - 1; // Monday = 0
if (recurDuringWork && mWorkDays.testBit(dayRecur)) {
mMainWorkTrigger = kdtRecur;
mAllWorkTrigger = kdtRecur.addSecs(-60 * reminder);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment