Changeset View
Changeset View
Standalone View
Standalone View
src/recurrencerule.cpp
Show First 20 Lines • Show All 1491 Lines • ▼ Show 20 Line(s) | 1393 | { | |||
---|---|---|---|---|---|
1492 | } | 1492 | } | ||
1493 | if (!match) { | 1493 | if (!match) { | ||
1494 | return false; | 1494 | return false; | ||
1495 | } | 1495 | } | ||
1496 | 1496 | | |||
1497 | Constraint interval(d->getNextValidDateInterval(start, recurrenceType())); | 1497 | Constraint interval(d->getNextValidDateInterval(start, recurrenceType())); | ||
1498 | // Constraint::matches is quite efficient, so first check if it can occur at | 1498 | // Constraint::matches is quite efficient, so first check if it can occur at | ||
1499 | // all before we calculate all actual dates. | 1499 | // all before we calculate all actual dates. | ||
1500 | match = false; | | |||
1501 | Constraint intervalm = interval; | 1500 | Constraint intervalm = interval; | ||
1502 | do { | 1501 | do { | ||
1503 | match = intervalm.matches(startDay, recurrenceType()); | 1502 | match = intervalm.matches(startDay, recurrenceType()); | ||
1504 | for (int day = 1; day < dayCount && !match; ++day) { | 1503 | for (int day = 1; day < dayCount && !match; ++day) { | ||
1505 | match = intervalm.matches(startDay.addDays(day), recurrenceType()); | 1504 | match = intervalm.matches(startDay.addDays(day), recurrenceType()); | ||
1506 | } | 1505 | } | ||
1507 | if (match) { | 1506 | if (match) { | ||
1508 | break; | 1507 | break; | ||
▲ Show 20 Lines • Show All 824 Lines • Show Last 20 Lines |