clazy: Convert many old-style connects into function pointer based
[quassel.git] / src / uisupport / abstractnotificationbackend.h
index 7d6b1d9..5f00daa 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <QObject>
 #include <QString>
+#include <utility>
 
 #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); }