X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fabstractnotificationbackend.h;h=5f00daa7a31774eb1b92ad800112c9d13287bf89;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hp=7d6b1d9dbedc8e5ae668ce9709e71af28547552a;hpb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;p=quassel.git diff --git a/src/uisupport/abstractnotificationbackend.h b/src/uisupport/abstractnotificationbackend.h index 7d6b1d9d..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) {}; - virtual ~AbstractNotificationBackend() {}; virtual void notify(const Notification &) = 0; virtual void close(uint notificationId) { Q_UNUSED(notificationId); }