Index: shell/src/MatchesCommand.cpp |
=================================================================== |
--- a/shell/src/MatchesCommand.cpp |
+++ b/shell/src/MatchesCommand.cpp |
@@ -18,17 +18,17 @@ void MatchesCommand::operator()(const st |
std::string documentUrl; |
argumentStream >> documentUrl; |
if (!url.size() || !contentType.size() || !documentUrl.size()) |
{ |
ShowUsage(); |
return; |
} |
- AdblockPlus::Filter* match = filterEngine.Matches(url, contentType, documentUrl); |
+ AdblockPlus::FilterPtr match = filterEngine.Matches(url, contentType, documentUrl); |
if (!match) |
std::cout << "No match" << std::endl; |
else if (match->GetProperty("type", "") == "exception") |
std::cout << "Whitelisted" << std::endl; |
else |
std::cout << "Blocked" << std::endl; |
} |