X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fabstractnotificationbackend.h;h=86d097361bf6de4c3c21788ddb17577d4caa82e4;hp=3655d9583552f34abedc9e6d57f8b87aaff99a8f;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=80950b87640acfb2a75902f8aabf3419da094bf4 diff --git a/src/uisupport/abstractnotificationbackend.h b/src/uisupport/abstractnotificationbackend.h index 3655d958..86d09736 100644 --- a/src/uisupport/abstractnotificationbackend.h +++ b/src/uisupport/abstractnotificationbackend.h @@ -24,6 +24,7 @@ #include #include +#include #include "bufferinfo.h" @@ -48,8 +49,8 @@ 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) {};