Index: compiled/filter/BlockingFilter.h |
=================================================================== |
--- a/compiled/filter/BlockingFilter.h |
+++ b/compiled/filter/BlockingFilter.h |
@@ -19,8 +19,18 @@ |
#include "RegExpFilter.h" |
class BlockingFilter : public RegExpFilter |
{ |
public: |
explicit BlockingFilter(const String& text, const RegExpFilterData& data); |
}; |
+ |
+ |
+template<> |
+inline BlockingFilter* Filter::As<BlockingFilter>() |
+{ |
+ if ((mType & Type::BLOCKING) == Type::BLOCKING) |
+ return nullptr; |
+ |
+ return static_cast<BlockingFilter*>(this); |
+} |