From 14664e54b1a2dbe9c06f474a0918a262dba04e20 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 25 Jul 2011 19:48:41 +0200 Subject: clean up - QL1S - one stupid kDebug less - codingstyle --- src/adblock/adblockrulenullimpl.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/adblock/adblockrulenullimpl.cpp') diff --git a/src/adblock/adblockrulenullimpl.cpp b/src/adblock/adblockrulenullimpl.cpp index ecd46b1b..807efc64 100644 --- a/src/adblock/adblockrulenullimpl.cpp +++ b/src/adblock/adblockrulenullimpl.cpp @@ -51,7 +51,7 @@ bool AdBlockRuleNullImpl::isNullFilter(const QString &filter) QString parsedLine = filter; const int optionsNumber = parsedLine.lastIndexOf(QL1C('$')); - if(optionsNumber == 0) + if (optionsNumber == 0) return false; const QStringList options(parsedLine.mid(optionsNumber + 1).split(QL1C(','))); @@ -59,63 +59,63 @@ bool AdBlockRuleNullImpl::isNullFilter(const QString &filter) Q_FOREACH(const QString & option, options) { // script - if(option == QL1S("script")) + if (option == QL1S("script")) return true; // image - if(option == QL1S("image")) + if (option == QL1S("image")) return true; // background - if(option == QL1S("background")) + if (option == QL1S("background")) return true; // stylesheet - if(option == QL1S("stylesheet")) + if (option == QL1S("stylesheet")) return true; // object - if(option == QL1S("object")) + if (option == QL1S("object")) return true; // xbl - if(option == QL1S("xbl")) + if (option == QL1S("xbl")) return true; // ping - if(option == QL1S("ping")) + if (option == QL1S("ping")) return true; // xmlhttprequest - if(option == QL1S("xmlhttprequest")) + if (option == QL1S("xmlhttprequest")) return true; // object_subrequest - if(option == QL1S("object-subrequest")) + if (option == QL1S("object-subrequest")) return true; // dtd - if(option == QL1S("dtd")) + if (option == QL1S("dtd")) return true; // subdocument - if(option == QL1S("subdocument")) + if (option == QL1S("subdocument")) return true; // document - if(option == QL1S("document")) + if (option == QL1S("document")) return true; // other - if(option == QL1S("other")) + if (option == QL1S("other")) return true; // third_party: managed inside adblockrulefallbackimpl - if(option == QL1S("third-party")) + if (option == QL1S("third-party")) return false; // collapse - if(option == QL1S("collapse")) + if (option == QL1S("collapse")) return true; } -- cgit v1.2.1