Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
15381eb3
Commit
15381eb3
authored
Nov 01, 2021
by
David Jarvie
Browse files
Fix clazy warning
parent
27377ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kaevent.cpp
View file @
15381eb3
...
...
@@ -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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment