X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhighlightrulemanager.h;h=0db44fc5e113fd194738f5a64d27567175093030;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hp=addbbf66f5a41ed33292441689219814988e66e6;hpb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;p=quassel.git diff --git a/src/common/highlightrulemanager.h b/src/common/highlightrulemanager.h index addbbf66..0db44fc5 100644 --- a/src/common/highlightrulemanager.h +++ b/src/common/highlightrulemanager.h @@ -61,7 +61,7 @@ public: /** * Construct an empty highlight rule */ - HighlightRule() {} + HighlightRule() = default; /** * Construct a highlight rule with the given parameters @@ -77,8 +77,8 @@ public: */ HighlightRule(int id, QString contents, bool isRegEx, bool isCaseSensitive, bool isEnabled, bool isInverse, QString sender, QString chanName) - : _id(id), _contents(contents), _isRegEx(isRegEx), _isCaseSensitive(isCaseSensitive), - _isEnabled(isEnabled), _isInverse(isInverse), _sender(sender), _chanName(chanName) + : _id(id), _contents(std::move(contents)), _isRegEx(isRegEx), _isCaseSensitive(isCaseSensitive), + _isEnabled(isEnabled), _isInverse(isInverse), _sender(std::move(sender)), _chanName(std::move(chanName)) { _cacheInvalid = true; // Cache expression matches on construction