modernize: Use raw string literals instead of escaped strings
[quassel.git] / src / common / ctcpevent.h
index 1f0635b..f9d7f43 100644 (file)
@@ -25,6 +25,7 @@
 #include "ircevent.h"
 
 #include <QUuid>
+#include <utility>
 
 class COMMON_EXPORT CtcpEvent : public IrcEvent
 {
@@ -34,14 +35,14 @@ public:
         Reply
     };
 
-    explicit CtcpEvent(EventManager::EventType type, Network *network, const QString &prefix, const QString &target,
-        CtcpType ctcpType, const QString &ctcpCmd, const QString &param,
+    explicit CtcpEvent(EventManager::EventType type, Network *network, const QString &prefix, QString target,
+        CtcpType ctcpType, QString ctcpCmd, QString param,
         const QDateTime &timestamp = QDateTime(), const QUuid &uuid = QUuid())
         : IrcEvent(type, network, prefix),
         _ctcpType(ctcpType),
-        _ctcpCmd(ctcpCmd),
-        _target(target),
-        _param(param),
+        _ctcpCmd(std::move(ctcpCmd)),
+        _target(std::move(target)),
+        _param(std::move(param)),
         _uuid(uuid)
     {
         setTimestamp(timestamp);
@@ -70,10 +71,10 @@ public:
 
 protected:
     explicit CtcpEvent(EventManager::EventType type, QVariantMap &map, Network *network);
-    void toVariantMap(QVariantMap &map) const;
+    void toVariantMap(QVariantMap &map) const override;
 
-    virtual inline QString className() const { return "CtcpEvent"; }
-    virtual inline void debugInfo(QDebug &dbg) const
+    inline QString className() const override { return "CtcpEvent"; }
+    inline void debugInfo(QDebug &dbg) const override
     {
         NetworkEvent::debugInfo(dbg);
         dbg << ", prefix = " << qPrintable(prefix())