diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-17 16:46:24 +0200 |
commit | 82167d2422a4b6e3071dca68cf65a66e1da41ab4 (patch) | |
tree | 03c1f95a2aa60c48822a463cc3812b5c3415991e /src/adblock/adblockrulenullimpl.cpp | |
parent | Improving tab previews (diff) | |
download | rekonq-82167d2422a4b6e3071dca68cf65a66e1da41ab4.tar.xz |
A round of the "new" astyle 2.01...
Diffstat (limited to 'src/adblock/adblockrulenullimpl.cpp')
-rw-r--r-- | src/adblock/adblockrulenullimpl.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/adblock/adblockrulenullimpl.cpp b/src/adblock/adblockrulenullimpl.cpp index 7f4e40b3..ecd46b1b 100644 --- a/src/adblock/adblockrulenullimpl.cpp +++ b/src/adblock/adblockrulenullimpl.cpp @@ -35,7 +35,7 @@ AdBlockRuleNullImpl::AdBlockRuleNullImpl(const QString &filter) - : AdBlockRuleImpl(filter) + : AdBlockRuleImpl(filter) { } @@ -51,71 +51,71 @@ 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(','))); - Q_FOREACH(const QString &option, options) + 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; } |