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

Unified Diff: shell/src/FiltersCommand.cpp

Issue 10213003: Make JsEngine::Evaluate() return a wrapper for v8::Value to accessdifferent variable types easily (Closed)
Patch Set: Extended JsValue API to support all FilterEngine functions Created April 13, 2013, 8:42 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 | « libadblockplus.gyp ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/FiltersCommand.cpp
===================================================================
--- a/shell/src/FiltersCommand.cpp
+++ b/shell/src/FiltersCommand.cpp
@@ -8,17 +8,17 @@ namespace
typedef std::vector<AdblockPlus::FilterPtr> FilterList;
void ShowFilterList(const FilterList& filters)
{
for (FilterList::const_iterator it = filters.begin();
it != filters.end(); it++)
{
std::string type;
- switch ((*it)->GetProperty("type", -1))
+ switch ((*it)->GetProperty("type", (int64_t)-1))
{
case AdblockPlus::Filter::TYPE_BLOCKING:
type = "blocking";
break;
case AdblockPlus::Filter::TYPE_EXCEPTION:
type = "exception";
break;
case AdblockPlus::Filter::TYPE_ELEMHIDE:
« no previous file with comments | « libadblockplus.gyp ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld