X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fqtuimessageprocessor.h;h=3b33132449c92f24b0ada69b795594479976657c;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hp=6a9684f7a64929c6805ea8d9aa700052095c173a;hpb=4c4fe2b514fc7ecf3186202d73b3b5ff8847763f;p=quassel.git diff --git a/src/qtui/qtuimessageprocessor.h b/src/qtui/qtuimessageprocessor.h index 6a9684f7..3b331324 100644 --- a/src/qtui/qtuimessageprocessor.h +++ b/src/qtui/qtuimessageprocessor.h @@ -22,6 +22,7 @@ #define QTUIMESSAGEPROCESSOR_H_ #include +#include #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 &msgs); + void process(Message &msg) override; + void process(QList &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