Index: shell/src/Main.cpp |
=================================================================== |
--- a/shell/src/Main.cpp |
+++ b/shell/src/Main.cpp |
@@ -35,17 +35,17 @@ namespace |
int main() |
{ |
try |
{ |
AdblockPlus::AppInfo appInfo; |
appInfo.version = "1.0"; |
appInfo.name = "Adblock Plus Shell"; |
- AdblockPlus::JsEngine jsEngine(appInfo); |
+ AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New(appInfo)); |
AdblockPlus::FilterEngine filterEngine(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)); |