aboutsummaryrefslogtreecommitdiff
path: root/lib/urlfilter/formats/hostlistrule.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-11-16 16:26:22 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-11-16 16:26:22 +0100
commit566abfa99120652fb1e9190d791fdbbba64d2e0d (patch)
tree86a6f71b926794298d922a9319b55909cf5a07b4 /lib/urlfilter/formats/hostlistrule.cpp
parentAdd more regex benchmarks (diff)
downloadsmolbote-566abfa99120652fb1e9190d791fdbbba64d2e0d.tar.xz
Add adblockrule_parse
Diffstat (limited to 'lib/urlfilter/formats/hostlistrule.cpp')
-rw-r--r--lib/urlfilter/formats/hostlistrule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/urlfilter/formats/hostlistrule.cpp b/lib/urlfilter/formats/hostlistrule.cpp
index e4561f0..ad2c2a6 100644
--- a/lib/urlfilter/formats/hostlistrule.cpp
+++ b/lib/urlfilter/formats/hostlistrule.cpp
@@ -21,9 +21,9 @@ bool HostlistRule::match(const QUrl &requestUrl) const
return (m_request == requestUrl.host());
}
-FilterLeaf::Action HostlistRule::action() const
+std::pair<FilterLeaf::Action, QVariant> HostlistRule::action() const
{
if(m_isBlocking)
- return FilterLeaf::Block;
- return FilterLeaf::Redirect;
+ return std::make_pair(FilterLeaf::Block, QVariant());
+ return std::make_pair(FilterLeaf::Redirect, QVariant(m_redirect));
}