Index: test/Prefs.cpp |
diff --git a/test/Prefs.cpp b/test/Prefs.cpp |
index ce217979fe96b6e9692df5682bfc8e6140493e7c..19dcd0c5171d975b8ba3fbcd8e7cb953c611573d 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::CreationParameters createParams; |
+ createParams.preconfiguredPrefs = preconfiguredPrefs; |
+ filterEngine = AdblockPlus::FilterEngine::Create(jsEngine, createParams); |
} |
}; |
} |