Commit 02b52053 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 4a4ce8de
Pipeline #77694 passed with stage
in 13 minutes and 31 seconds
...@@ -70,7 +70,7 @@ SummaryEventInfo::SummaryEventInfo() ...@@ -70,7 +70,7 @@ SummaryEventInfo::SummaryEventInfo()
} }
/**static*/ /**static*/
SummaryEventInfo::List SummaryEventInfo::eventsForRange(const QDate &start, const QDate &end, const Akonadi::ETMCalendar::Ptr &calendar) SummaryEventInfo::List SummaryEventInfo::eventsForRange(QDate start, QDate end, const Akonadi::ETMCalendar::Ptr &calendar)
{ {
KCalendarCore::Event::List allEvents = calendar->events(); KCalendarCore::Event::List allEvents = calendar->events();
KCalendarCore::Event::List events; KCalendarCore::Event::List events;
...@@ -261,7 +261,7 @@ SummaryEventInfo::List SummaryEventInfo::eventsForRange(const QDate &start, cons ...@@ -261,7 +261,7 @@ SummaryEventInfo::List SummaryEventInfo::eventsForRange(const QDate &start, cons
return eventInfoList; return eventInfoList;
} }
SummaryEventInfo::List SummaryEventInfo::eventsForDate(const QDate &date, const Akonadi::ETMCalendar::Ptr &calendar) SummaryEventInfo::List SummaryEventInfo::eventsForDate(QDate date, const Akonadi::ETMCalendar::Ptr &calendar)
{ {
return eventsForRange(date, date, calendar); return eventsForRange(date, date, calendar);
} }
...@@ -20,9 +20,9 @@ public: ...@@ -20,9 +20,9 @@ public:
SummaryEventInfo(); SummaryEventInfo();
static List eventsForDate(const QDate &date, const Akonadi::ETMCalendar::Ptr &calendar); static List eventsForDate(QDate date, const Akonadi::ETMCalendar::Ptr &calendar);
static List eventsForRange(const QDate &start, static List eventsForRange(QDate start,
const QDate &end, // range is inclusive QDate end, // range is inclusive
const Akonadi::ETMCalendar::Ptr &calendar); const Akonadi::ETMCalendar::Ptr &calendar);
static void setShowSpecialEvents(bool skipBirthdays, bool skipAnniversaries); static void setShowSpecialEvents(bool skipBirthdays, bool skipAnniversaries);
......
Markdown is supported
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