Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/filter/InvalidFilter.h

Issue 29574591: Issue 5258 - Implement Filter::As<>() method to make working with filters easier from C++ code (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Removed unnecessary base class check Created Oct. 13, 2017, 4:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/filter/Filter.cpp ('k') | compiled/filter/InvalidFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/InvalidFilter.h
===================================================================
--- a/compiled/filter/InvalidFilter.h
+++ b/compiled/filter/InvalidFilter.h
@@ -18,16 +18,17 @@
#pragma once
#include "Filter.h"
#include "../bindings/runtime.h"
class InvalidFilter : public Filter
{
public:
+ static constexpr Type classType = Type::INVALID;
explicit InvalidFilter(const String& text, const String& reason);
const String& BINDINGS_EXPORTED GetReason() const
{
return mReason;
};
private:
OwnedString mReason;
};
« no previous file with comments | « compiled/filter/Filter.cpp ('k') | compiled/filter/InvalidFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld