Commit ae78a89a authored by Laurent Montel's avatar Laurent Montel
Browse files

Use const'ref here

parent a07091bb
Pipeline #227667 passed with stage
in 10 minutes and 36 seconds
......@@ -54,7 +54,7 @@ KSharedConfig::Ptr FollowUpReminder::FollowUpReminderUtil::defaultConfig()
return KSharedConfig::openConfig(QStringLiteral("akonadi_followupreminder_agentrc"), KConfig::SimpleConfig);
}
void FollowUpReminder::FollowUpReminderUtil::writeFollowupReminderInfo(KSharedConfig::Ptr config,
void FollowUpReminder::FollowUpReminderUtil::writeFollowupReminderInfo(const KSharedConfig::Ptr &config,
FollowUpReminder::FollowUpReminderInfo *info,
bool forceReload)
{
......@@ -90,7 +90,7 @@ void FollowUpReminder::FollowUpReminderUtil::writeFollowupReminderInfo(KSharedCo
}
}
bool FollowUpReminder::FollowUpReminderUtil::removeFollowupReminderInfo(KSharedConfig::Ptr config, const QList<qint32> &listRemove, bool forceReload)
bool FollowUpReminder::FollowUpReminderUtil::removeFollowupReminderInfo(const KSharedConfig::Ptr &config, const QList<qint32> &listRemove, bool forceReload)
{
if (listRemove.isEmpty()) {
return false;
......
......@@ -25,9 +25,9 @@ void forceReparseConfiguration();
Q_REQUIRED_RESULT KSharedConfig::Ptr defaultConfig();
void writeFollowupReminderInfo(KSharedConfig::Ptr config, FollowUpReminder::FollowUpReminderInfo *info, bool forceReload);
void writeFollowupReminderInfo(const KSharedConfig::Ptr &config, FollowUpReminder::FollowUpReminderInfo *info, bool forceReload);
Q_REQUIRED_RESULT bool removeFollowupReminderInfo(KSharedConfig::Ptr config, const QList<qint32> &listRemove, bool forceReload = false);
Q_REQUIRED_RESULT bool removeFollowupReminderInfo(const KSharedConfig::Ptr &config, const QList<qint32> &listRemove, bool forceReload = false);
Q_REQUIRED_RESULT QString followUpReminderPattern();
}
......
Supports Markdown
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