Index: test/Prefs.cpp |
diff --git a/test/Prefs.cpp b/test/Prefs.cpp |
index ce217979fe96b6e9692df5682bfc8e6140493e7c..ce502628ba4d64cefe845e0ce20eff3a0efaada6 100644 |
--- a/test/Prefs.cpp |
+++ b/test/Prefs.cpp |
@@ -85,9 +85,9 @@ namespace |
jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr(new LazyLogSystem)); |
jsEngine->SetFileSystem(fileSystemPtr); |
jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new LazyWebRequest)); |
- |
- filterEngine.reset( |
- new AdblockPlus::FilterEngine(jsEngine, preconfiguredPrefs)); |
+ AdblockPlus::FilterEngine::CreateParameters createParams; |
+ createParams.preconfiguredPrefs = preconfiguredPrefs; |
+ filterEngine = AdblockPlus::FilterEngine::Create(jsEngine, createParams); |
} |
}; |
} |