aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/filtertree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/urlfilter/filtertree.cpp')
-rw-r--r--lib/urlfilter/filtertree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/urlfilter/filtertree.cpp b/lib/urlfilter/filtertree.cpp
index dcde196..2cdd6d0 100644
--- a/lib/urlfilter/filtertree.cpp
+++ b/lib/urlfilter/filtertree.cpp
@@ -57,11 +57,11 @@ const QStringList FilterTree::branches() const
return branches;
}
-QVector<const FilterLeaf *> FilterTree::match(const QString &domain, const QString &requestUrl) const
+QVector<const FilterLeaf *> FilterTree::match(const QUrl &domain, const QUrl &requestUrl) const
{
QVector<const FilterLeaf *> leaves;
for(const auto &branch : m_branches) {
- if(branch.domain.matches(QUrl(domain))) {
+ if(branch.domain.matches(domain)) {
for(const auto leaf : branch.leaves) {
if(leaf->match(requestUrl)) {