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

Unified Diff: src/FilterEngine.cpp

Issue 10100009: FilterEngine API improvements (Closed)
Patch Set: Changed filter type enum Created April 9, 2013, 5:55 a.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 | « shell/src/FiltersCommand.cpp ('k') | test/FilterEngineStubs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FilterEngine.cpp
===================================================================
--- a/src/FilterEngine.cpp
+++ b/src/FilterEngine.cpp
@@ -73,25 +73,25 @@ void JsObject::SetProperty(const std::st
}
#if FILTER_ENGINE_STUBS
Filter::Filter(FilterEngine& filterEngine, const std::string& text)
: JsObject(filterEngine)
{
SetProperty("text", text);
if (text.find("!") == 0)
- SetProperty("type", COMMENT_RULE);
+ SetProperty("type", TYPE_COMMENT);
else if (text.find("@@") == 0)
- SetProperty("type", EXCEPTION_RULE);
+ SetProperty("type", TYPE_EXCEPTION);
else if (text.find("#@") != std::string::npos)
- SetProperty("type", ELEMHIDE_EXCEPTION_RULE);
+ SetProperty("type", TYPE_ELEMHIDE_EXCEPTION);
else if (text.find("#") != std::string::npos)
- SetProperty("type", ELEMHIDE_RULE);
+ SetProperty("type", TYPE_ELEMHIDE);
else
- SetProperty("type", BLOCKING_RULE);
+ SetProperty("type", TYPE_BLOCKING);
}
#else
Filter::Filter()
{
}
#endif
bool Filter::IsListed() const
« no previous file with comments | « shell/src/FiltersCommand.cpp ('k') | test/FilterEngineStubs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld