modernize: Use braced-init list when returning types
[quassel.git] / src / qtui / qtuimessageprocessor.h
index 6a9684f..3b33132 100644 (file)
@@ -22,6 +22,7 @@
 #define QTUIMESSAGEPROCESSOR_H_
 
 #include <QTimer>
+#include <utility>
 
 #include "abstractmessageprocessor.h"
 #include "expressionmatch.h"
@@ -42,11 +43,11 @@ public:
     inline bool isProcessing() const { return _processing; }
     inline Mode processMode() const { return _processMode; }
 
-    void reset();
+    void reset() override;
 
 public slots:
-    void process(Message &msg);
-    void process(QList<Message> &msgs);
+    void process(Message &msg) override;
+    void process(QList<Message> &msgs) override;
 
     /**
      * Network removed from system
@@ -76,7 +77,7 @@ private:
         /**
          * Construct an empty highlight rule
          */
-        LegacyHighlightRule() {}
+        LegacyHighlightRule() = default;
 
         /**
          * Construct a highlight rule with the given parameters
@@ -89,8 +90,8 @@ private:
          */
         LegacyHighlightRule(QString contents, bool isRegEx, bool isCaseSensitive, bool isEnabled,
                       QString chanName)
-            : _contents(contents), _isRegEx(isRegEx), _isCaseSensitive(isCaseSensitive),
-              _isEnabled(isEnabled), _chanName(chanName)
+            : _contents(std::move(contents)), _isRegEx(isRegEx), _isCaseSensitive(isCaseSensitive),
+              _isEnabled(isEnabled), _chanName(std::move(chanName))
         {
             _cacheInvalid = true;
             // Cache expression matches on construction