X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fignorelistmanager.h;h=79acff65d7f5a370b62dea74517f7d1b01cb07fc;hp=1bec1c84a2859b5ebed18d2c9fbf10899c94afa0;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hpb=80950b87640acfb2a75902f8aabf3419da094bf4 diff --git a/src/common/ignorelistmanager.h b/src/common/ignorelistmanager.h index 1bec1c84..79acff65 100644 --- a/src/common/ignorelistmanager.h +++ b/src/common/ignorelistmanager.h @@ -25,6 +25,7 @@ #include #include #include +#include #include "expressionmatch.h" #include "message.h" @@ -65,7 +66,7 @@ public: /** * Construct an empty ignore rule */ - IgnoreListItem() {} + IgnoreListItem() = default; /** * Construct an ignore rule with the given parameters @@ -81,11 +82,11 @@ public: * @param scopeRule String representing a scope rule expression to match * @param isEnabled True if enabled, otherwise false */ - IgnoreListItem(IgnoreType type, const QString &contents, bool isRegEx, - StrictnessType strictness, ScopeType scope, const QString &scopeRule, + IgnoreListItem(IgnoreType type, QString contents, bool isRegEx, + StrictnessType strictness, ScopeType scope, QString scopeRule, bool isEnabled) - : _contents(contents), _isRegEx(isRegEx), _strictness(strictness), - _scope(scope), _scopeRule(scopeRule), _isEnabled(isEnabled) + : _contents(std::move(contents)), _isRegEx(isRegEx), _strictness(strictness), + _scope(scope), _scopeRule(std::move(scopeRule)), _isEnabled(isEnabled) { // Allow passing empty "contents" as they can happen when editing an ignore rule