X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreignorelistmanager.cpp;h=0694b86e13bc81a1595afeb010b27beb06dcbdc1;hb=714b39660fe19e7f092880019429c8da76ee2bd5;hp=05445cac6cea88890bcb929e7df9b717347772e4;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/core/coreignorelistmanager.cpp b/src/core/coreignorelistmanager.cpp index 05445cac..0694b86e 100644 --- a/src/core/coreignorelistmanager.cpp +++ b/src/core/coreignorelistmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,11 +23,10 @@ #include "core.h" #include "coresession.h" -INIT_SYNCABLE_OBJECT(CoreIgnoreListManager) CoreIgnoreListManager::CoreIgnoreListManager(CoreSession *parent) : IgnoreListManager(parent) { - CoreSession *session = qobject_cast(parent); + auto *session = qobject_cast(parent); if (!session) { qWarning() << "CoreIgnoreListManager: unable to load IgnoreList. Parent is not a Coresession!"; //loadDefaults(); @@ -53,7 +52,7 @@ IgnoreListManager::StrictnessType CoreIgnoreListManager::match(const RawMessage void CoreIgnoreListManager::save() const { - CoreSession *session = qobject_cast(parent()); + auto *session = qobject_cast(parent()); if (!session) { qWarning() << "CoreIgnoreListManager: unable to save IgnoreList. Parent is not a Coresession!"; return; @@ -65,6 +64,7 @@ void CoreIgnoreListManager::save() const //void CoreIgnoreListManager::loadDefaults() { // foreach(IgnoreListItem item, IgnoreListManager::defaults()) { -// addIgnoreListItem(item.ignoreRule, item.isRegEx, item.strictness, item.scope, item.scopeRule); +// addIgnoreListItem(item.contents(), item.isRegEx(), item.strictness(), item.scope(), +// item.scopeRule()); // } //}