#pragma once
+#include "common-export.h"
+
#include <utility>
#include <QString>
#include "nickhighlightmatcher.h"
#include "syncableobject.h"
-class HighlightRuleManager : public SyncableObject
+class COMMON_EXPORT HighlightRuleManager : public SyncableObject
{
Q_OBJECT
SYNCABLE_OBJECT
/**
* Individual highlight rule
*/
- class HighlightRule
+ class COMMON_EXPORT HighlightRule
{
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