Index: compiled/filter/ElemHideException.h |
=================================================================== |
--- a/compiled/filter/ElemHideException.h |
+++ b/compiled/filter/ElemHideException.h |
@@ -22,8 +22,17 @@ |
#include "Filter.h" |
#include "ElemHideBase.h" |
class ElemHideException: public ElemHideBase |
{ |
public: |
explicit ElemHideException(const String& text, const ElemHideData& data); |
}; |
+ |
+template<> |
+inline ElemHideException* Filter::As<ElemHideException>() |
+{ |
+ if ((mType & Type::ELEMHIDEEXCEPTION) == Type::ELEMHIDEEXCEPTION) |
+ return nullptr; |
+ |
+ return static_cast<ElemHideException*>(this); |
+} |