Commit 74898d93 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent be6d3105
Pipeline #58220 passed with stage
in 23 minutes and 51 seconds
......@@ -130,7 +130,7 @@ MailCommon::BackupJob::ArchiveType ArchiveMailInfo::archiveType() const
return mArchiveType;
}
void ArchiveMailInfo::setLastDateSaved(const QDate &date)
void ArchiveMailInfo::setLastDateSaved(QDate date)
{
mLastDateSaved = date;
}
......
......@@ -48,7 +48,7 @@ public:
void setArchiveAge(int age);
Q_REQUIRED_RESULT int archiveAge() const;
void setLastDateSaved(const QDate &date);
void setLastDateSaved(QDate date);
Q_REQUIRED_RESULT QDate lastDateSaved() const;
Q_REQUIRED_RESULT int maximumArchiveCount() const;
......
......@@ -106,7 +106,7 @@ void FollowUpReminderAgent::addReminder(const QString &messageId,
Akonadi::Item::Id messageItemId,
const QString &to,
const QString &subject,
const QDate &followupDate,
QDate followupDate,
Akonadi::Item::Id todoId)
{
auto info = new FollowUpReminder::FollowUpReminderInfo();
......
......@@ -7,6 +7,7 @@
#pragma once
#include <AkonadiAgentBase/agentbase.h>
#include <QDate>
class FollowUpReminderManager;
class FollowUpReminderAgent : public Akonadi::AgentBase, public Akonadi::AgentBase::ObserverV3
{
......@@ -26,7 +27,7 @@ public Q_SLOTS:
Akonadi::Item::Id messageItemId,
const QString &to,
const QString &subject,
const QDate &followupDate,
QDate followupDate,
Akonadi::Item::Id todoId);
protected:
......
......@@ -393,7 +393,7 @@ void SummaryViewPart::slotAdjustPalette()
}
}
void SummaryViewPart::setDate(const QDate &newDate)
void SummaryViewPart::setDate(QDate newDate)
{
QString date(QStringLiteral("<b>%1</b>"));
date = date.arg(QLocale().toString(newDate));
......
......@@ -11,6 +11,7 @@
#pragma once
#include <KParts/Part>
#include <QDate>
#include <QMap>
class DropWidget;
......@@ -39,7 +40,7 @@ public:
public Q_SLOTS:
void slotTextChanged();
void slotAdjustPalette();
void setDate(const QDate &newDate);
void setDate(QDate newDate);
void updateSummaries();
Q_SIGNALS:
......
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