[pim/kdepim-runtime] agents/newmailnotifier: Don't use std::move here
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 5cb19393fdf7e761affc1887898d381bdc7acd37 by Laurent Montel.
Committed on 16/08/2026 at 10:38.
Pushed by mlaurent into branch 'master'.
Don't use std::move here
M +3 -3 agents/newmailnotifier/newmailnotifieragent.cpp
https://invent.kde.org/pim/kdepim-runtime/-/commit/5cb19393fdf7e761affc1887898d381bdc7acd37
diff --git a/agents/newmailnotifier/newmailnotifieragent.cpp b/agents/newmailnotifier/newmailnotifieragent.cpp
index 393dce0b0..862ce98f8 100644
--- a/agents/newmailnotifier/newmailnotifieragent.cpp
+++ b/agents/newmailnotifier/newmailnotifieragent.cpp
@@ -383,12 +383,12 @@ void NewMailNotifierAgent::slotShowNotifications()
info.listEmails = mListEmails;
info.defaultIconName = mDefaultIconName;
info.resourceName = resourceName;
- auto job = new SpecialNotifierJob(std::move(info), this);
+ auto job = new SpecialNotifierJob(info, this);
connect(job, &SpecialNotifierJob::displayNotification, this, [this, itemId](const QPixmap &pixmap, const QString &message) {
NewMailNotificationHistoryManager::HistoryMailInfo info;
info.message = message;
info.identifier = itemId;
- addEmailInfoNotificationHistory(pixmap, message, std::move(info));
+ addEmailInfoNotificationHistory(pixmap, message, info);
});
#if HAVE_TEXT_TO_SPEECH_SUPPORT
connect(job, &SpecialNotifierJob::say, this, &NewMailNotifierAgent::slotSay);
@@ -404,7 +404,7 @@ void NewMailNotifierAgent::slotShowNotifications()
qCDebug(NEWMAILNOTIFIER_LOG) << message;
- addFoldersInfoNotificationHistory(message, std::move(infos));
+ addFoldersInfoNotificationHistory(message, infos);
mNewMails.clear();
}