uisupport: Provide helpers for dealing with widget changes
[quassel.git] / src / qtui / qtuimessageprocessor.h
index d6d39f3..f31f75b 100644 (file)
@@ -22,6 +22,7 @@
 #define QTUIMESSAGEPROCESSOR_H_
 
 #include <QTimer>
+#include <utility>
 
 #include "abstractmessageprocessor.h"
 #include "expressionmatch.h"
@@ -55,10 +56,7 @@ public slots:
      *
      * @param id Network ID of removed network
      */
-    inline void networkRemoved(NetworkId id) {
-        // Clean up nickname matching cache
-        _nickMatcher.removeNetwork(id);
-    }
+    void networkRemoved(NetworkId id) override;
 
 private slots:
     void processNextMessage();
@@ -76,7 +74,7 @@ private:
         /**
          * Construct an empty highlight rule
          */
-        LegacyHighlightRule() {}
+        LegacyHighlightRule() = default;
 
         /**
          * Construct a highlight rule with the given parameters
@@ -89,8 +87,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