Index: shell/src/Main.cpp |
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp |
index a846731ff2d7c5d8c54cd7544d41ccc494e1f44b..ccbbce8f3931b8a334c326eb9f59e0d3f789da6d 100644 |
--- a/shell/src/Main.cpp |
+++ b/shell/src/Main.cpp |
@@ -62,15 +62,15 @@ int main() |
appInfo.applicationVersion = "1.0"; |
appInfo.locale = "en-US"; |
AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New(appInfo)); |
- AdblockPlus::FilterEngine filterEngine(jsEngine); |
+ auto filterEngine = AdblockPlus::FilterEngine::Create(jsEngine); |
CommandMap commands; |
Add(commands, new GcCommand(jsEngine)); |
Add(commands, new HelpCommand(commands)); |
- Add(commands, new FiltersCommand(filterEngine)); |
- Add(commands, new SubscriptionsCommand(filterEngine)); |
- Add(commands, new MatchesCommand(filterEngine)); |
- Add(commands, new PrefsCommand(filterEngine)); |
+ Add(commands, new FiltersCommand(*filterEngine)); |
+ Add(commands, new SubscriptionsCommand(*filterEngine)); |
+ Add(commands, new MatchesCommand(*filterEngine)); |
+ Add(commands, new PrefsCommand(*filterEngine)); |
std::string commandLine; |
while (ReadCommandLine(commandLine)) |