modernize: Replace most remaining old-style connects by PMF ones
[quassel.git] / src / common / messageevent.h
index dfe81d0..7e6df26 100644 (file)
@@ -33,9 +33,9 @@ class COMMON_EXPORT MessageEvent : public NetworkEvent
 public:
     explicit MessageEvent(Message::Type msgType,
         Network *network,
-        const QString &msg,
+        QString msg,
         const QString &sender = QString(),
-        const QString &target = QString(),
+        QString target = QString(),
         Message::Flags msgFlags = Message::None,
         const QDateTime &timestamp = QDateTime()
         );
@@ -58,10 +58,10 @@ public:
 
 protected:
     explicit MessageEvent(EventManager::EventType type, QVariantMap &map, Network *network);
-    void toVariantMap(QVariantMap &map) const;
+    void toVariantMap(QVariantMap &map) const override;
 
-    virtual inline QString className() const { return "MessageEvent"; }
-    virtual inline void debugInfo(QDebug &dbg) const
+    inline QString className() const override { return "MessageEvent"; }
+    inline void debugInfo(QDebug &dbg) const override
     {
         NetworkEvent::debugInfo(dbg);
         dbg.nospace() << ", sender = " << qPrintable(sender())