diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-25 19:48:41 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-25 19:48:41 +0200 |
commit | 14664e54b1a2dbe9c06f474a0918a262dba04e20 (patch) | |
tree | 2f48b455d90b5a966045f8ba6388ac8c0620259f /src/adblock/adblockrulenullimpl.cpp | |
parent | Last SSL fixes (diff) | |
download | rekonq-14664e54b1a2dbe9c06f474a0918a262dba04e20.tar.xz |
clean up
- QL1S
- one stupid kDebug less
- codingstyle
Diffstat (limited to 'src/adblock/adblockrulenullimpl.cpp')
-rw-r--r-- | src/adblock/adblockrulenullimpl.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
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; } |