#define QTUIMESSAGEPROCESSOR_H_
#include <QTimer>
+#include <utility>
#include "abstractmessageprocessor.h"
#include "expressionmatch.h"
*
* @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();
/**
* Construct an empty highlight rule
*/
- LegacyHighlightRule() {}
+ LegacyHighlightRule() = default;
/**
* Construct a highlight rule with the given parameters
*/
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