X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.cpp;h=66e9dc5e88c5115142bd6b57d1bd1fd2ab770111;hb=95848fd9232d92f388e0e533adb15f6ba9d2d492;hp=ffd3d67fb5f00a28d75f5e45ec93d0b0330deceb;hpb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad;p=quassel.git diff --git a/src/core/corehighlightrulemanager.cpp b/src/core/corehighlightrulemanager.cpp index ffd3d67f..66e9dc5e 100644 --- a/src/core/corehighlightrulemanager.cpp +++ b/src/core/corehighlightrulemanager.cpp @@ -25,7 +25,7 @@ constexpr auto settingsKey = "HighlightRuleList"; -CoreHighlightRuleManager::CoreHighlightRuleManager(CoreSession *session) +CoreHighlightRuleManager::CoreHighlightRuleManager(CoreSession* session) : HighlightRuleManager(session) , _coreSession{session} { @@ -36,7 +36,7 @@ CoreHighlightRuleManager::CoreHighlightRuleManager(CoreSession *session) // Otherwise, we just use the defaults initialized in the base class // We store our settings whenever they change - connect(this, SIGNAL(updatedRemotely()), SLOT(save())); + connect(this, &SyncableObject::updatedRemotely, this, &CoreHighlightRuleManager::save); } void CoreHighlightRuleManager::save() @@ -44,9 +44,7 @@ void CoreHighlightRuleManager::save() Core::setUserSetting(_coreSession->user(), settingsKey, toVariantMap()); } -bool CoreHighlightRuleManager::match(const RawMessage &msg, const QString ¤tNick, - const QStringList &identityNicks) +bool CoreHighlightRuleManager::match(const RawMessage& msg, const QString& currentNick, const QStringList& identityNicks) { - return match(msg.networkId, msg.text, msg.sender, msg.type, msg.flags, msg.target, currentNick, - identityNicks); + return match(msg.networkId, msg.text, msg.sender, msg.type, msg.flags, msg.target, currentNick, identityNicks); }