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