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