Index: shell/src/FiltersCommand.cpp |
=================================================================== |
--- a/shell/src/FiltersCommand.cpp |
+++ b/shell/src/FiltersCommand.cpp |
@@ -93,22 +93,22 @@ std::string FiltersCommand::GetUsage() c |
void FiltersCommand::ShowFilters() |
{ |
ShowFilterList(filterEngine.GetListedFilters()); |
} |
void FiltersCommand::AddFilter(const std::string& text) |
{ |
- AdblockPlus::Filter& filter = filterEngine.GetFilter(text); |
- filter.AddToList(); |
+ AdblockPlus::FilterPtr filter = filterEngine.GetFilter(text); |
+ filter->AddToList(); |
} |
void FiltersCommand::RemoveFilter(const std::string& text) |
{ |
- AdblockPlus::Filter& filter = filterEngine.GetFilter(text); |
- if (!filter.IsListed()) |
+ AdblockPlus::FilterPtr filter = filterEngine.GetFilter(text); |
+ if (!filter->IsListed()) |
{ |
std::cout << "No such filter '" << text << "'" << std::endl; |
return; |
} |
- filter.RemoveFromList(); |
+ filter->RemoveFromList(); |
} |