Commit 7fda64df authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 96845770
Pipeline #78161 failed with stage
in 3 minutes and 59 seconds
...@@ -173,7 +173,7 @@ KDatePicker *KDatePickerPopup::datePicker() const ...@@ -173,7 +173,7 @@ KDatePicker *KDatePickerPopup::datePicker() const
return d->mDatePicker; return d->mDatePicker;
} }
void KDatePickerPopup::setDate(const QDate &date) void KDatePickerPopup::setDate(QDate date)
{ {
d->mDatePicker->setDate(date); d->mDatePicker->setDate(date);
} }
......
...@@ -73,7 +73,7 @@ public Q_SLOTS: ...@@ -73,7 +73,7 @@ public Q_SLOTS:
/** /**
* Sets the current @p date. * Sets the current @p date.
*/ */
void setDate(const QDate &date); void setDate(QDate date);
Q_SIGNALS: Q_SIGNALS:
/** /**
......
...@@ -74,7 +74,7 @@ void CalPrinter::init(const Akonadi::ETMCalendar::Ptr &calendar) ...@@ -74,7 +74,7 @@ void CalPrinter::init(const Akonadi::ETMCalendar::Ptr &calendar)
void CalPrinter::setDateRange(QDate fd, QDate td) void CalPrinter::setDateRange(QDate fd, QDate td)
{ {
for (const auto plugin : mPrintPlugins) { for (const auto plugin : std::as_const(mPrintPlugins)) {
plugin->setDateRange(fd, td); plugin->setDateRange(fd, td);
} }
} }
......
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