Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM EventViews
Commits
f422a17d
Commit
f422a17d
authored
Sep 24, 2021
by
Laurent Montel
😁
Browse files
Use const'ref
parent
9eaf5098
Pipeline
#82409
passed with stage
in 9 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/month/monthview.cpp
View file @
f422a17d
...
...
@@ -440,7 +440,7 @@ KHolidays::Holiday::List MonthView::holidays(QDate startDate, QDate endDate)
{
KHolidays
::
Holiday
::
List
holidays
;
auto
const
regions
=
CalendarSupport
::
KCalPrefs
::
instance
()
->
mHolidays
;
for
(
auto
const
r
:
regions
)
{
for
(
auto
const
&
r
:
regions
)
{
KHolidays
::
HolidayRegion
region
(
r
);
if
(
region
.
isValid
())
{
holidays
+=
region
.
holidays
(
startDate
,
endDate
);
...
...
@@ -516,7 +516,7 @@ void MonthView::reloadIncidences()
}
// add holidays
for
(
auto
const
h
:
holidays
(
actualStartDateTime
().
date
(),
actualEndDateTime
().
date
()))
{
for
(
auto
const
&
h
:
holidays
(
actualStartDateTime
().
date
(),
actualEndDateTime
().
date
()))
{
if
(
h
.
dayType
()
==
KHolidays
::
Holiday
::
NonWorkday
)
{
MonthItem
*
holidayItem
=
new
HolidayMonthItem
(
d
->
scene
,
h
.
observedStartDate
(),
h
.
observedEndDate
(),
h
.
name
());
d
->
scene
->
mManagerList
<<
holidayItem
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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