| 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)->GetType()) |
| { |
| case AdblockPlus::Filter::TYPE_BLOCKING: |
| type = "blocking"; |
| break; |
| case AdblockPlus::Filter::TYPE_EXCEPTION: |
| type = "exception"; |
| break; |
| case AdblockPlus::Filter::TYPE_ELEMHIDE: |
| @@ -32,17 +32,17 @@ namespace |
| break; |
| case AdblockPlus::Filter::TYPE_INVALID: |
| type = "invalid"; |
| break; |
| default: |
| type = "(unknown type)"; |
| break; |
| } |
| - std::cout << (*it)->GetProperty("text", "(no text)") << " - " << |
| + std::cout << (*it)->GetProperty("text")->AsString() << " - " << |
| type << std::endl; |
| } |
| } |
| } |
| FiltersCommand::FiltersCommand(AdblockPlus::FilterEngine& filterEngine) |
| : Command("filters"), filterEngine(filterEngine) |
| { |