X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fabstractnotificationbackend.h;h=5f00daa7a31774eb1b92ad800112c9d13287bf89;hb=98144aaad0cd747f186edcd0e36a1d67326ac766;hp=3655d9583552f34abedc9e6d57f8b87aaff99a8f;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;p=quassel.git diff --git a/src/uisupport/abstractnotificationbackend.h b/src/uisupport/abstractnotificationbackend.h index 3655d958..5f00daa7 100644 --- a/src/uisupport/abstractnotificationbackend.h +++ b/src/uisupport/abstractnotificationbackend.h @@ -24,6 +24,7 @@ #include #include +#include #include "bufferinfo.h" @@ -48,12 +49,11 @@ public: QString sender; QString message; - Notification(uint id_, BufferId buf_, NotificationType type_, const QString &sender_, const QString &msg_) - : notificationId(id_), bufferId(buf_), type(type_), sender(sender_), message(msg_) {}; + Notification(uint id_, BufferId buf_, NotificationType type_, QString sender_, QString msg_) + : notificationId(id_), bufferId(buf_), type(type_), sender(std::move(sender_)), message(std::move(msg_)) {}; }; inline AbstractNotificationBackend(QObject *parent) : QObject(parent) {}; - ~AbstractNotificationBackend() override {}; virtual void notify(const Notification &) = 0; virtual void close(uint notificationId) { Q_UNUSED(notificationId); }