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

Unified Diff: shell/src/MatchesCommand.cpp

Issue 29416579: Issue 5034 - Part 1: Pass a JsValue directly to SetProperty() and return from GetProperty() (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Remove JsValue test Created April 19, 2017, 2:46 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 | « shell/src/FiltersCommand.cpp ('k') | shell/src/SubscriptionsCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/MatchesCommand.cpp
===================================================================
--- a/shell/src/MatchesCommand.cpp
+++ b/shell/src/MatchesCommand.cpp
@@ -48,19 +48,19 @@
ShowUsage();
return;
}
AdblockPlus::FilterPtr match = filterEngine.Matches(url, contentType, documentUrl);
if (!match)
std::cout << "No match" << std::endl;
else if (match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION)
- std::cout << "Whitelisted by " << match->GetProperty("text")->AsString() << std::endl;
+ std::cout << "Whitelisted by " << match->GetProperty("text").AsString() << std::endl;
else
- std::cout << "Blocked by " << match->GetProperty("text")->AsString() << std::endl;
+ std::cout << "Blocked by " << match->GetProperty("text").AsString() << std::endl;
}
std::string MatchesCommand::GetDescription() const
{
return "Returns the first filter that matches the supplied URL";
}
std::string MatchesCommand::GetUsage() const
« no previous file with comments | « shell/src/FiltersCommand.cpp ('k') | shell/src/SubscriptionsCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld