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/adblockhostmatcher.cpp | |
parent | Last SSL fixes (diff) | |
download | rekonq-14664e54b1a2dbe9c06f474a0918a262dba04e20.tar.xz |
clean up
- QL1S
- one stupid kDebug less
- codingstyle
Diffstat (limited to 'src/adblock/adblockhostmatcher.cpp')
-rw-r--r-- | src/adblock/adblockhostmatcher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adblock/adblockhostmatcher.cpp b/src/adblock/adblockhostmatcher.cpp index 4a29fb9e..021fe12d 100644 --- a/src/adblock/adblockhostmatcher.cpp +++ b/src/adblock/adblockhostmatcher.cpp @@ -31,20 +31,20 @@ bool AdBlockHostMatcher::tryAddFilter(const QString &filter) { - if(filter.startsWith(QL1S("||"))) + if (filter.startsWith(QL1S("||"))) { QString domain = filter.mid(2); - if(!domain.endsWith(QL1C('^'))) + if (!domain.endsWith(QL1C('^'))) return false; - if(domain.contains(QL1C('$'))) + if (domain.contains(QL1C('$'))) return false; domain = domain.left(domain.size() - 1); - if(domain.contains(QL1C('/')) || domain.contains(QL1C('*')) || domain.contains(QL1C('^'))) + if (domain.contains(QL1C('/')) || domain.contains(QL1C('*')) || domain.contains(QL1C('^'))) return false; domain = domain.toLower(); |