Index: include/AdblockPlus/JsEngine.h |
diff --git a/include/AdblockPlus/JsEngine.h b/include/AdblockPlus/JsEngine.h |
index 7ff04d45bfdf0c0326d65f0d837286575cc9a7aa..f39dfc87035bf3e82d0f51225cfca7d4e46494d2 100644 |
--- a/include/AdblockPlus/JsEngine.h |
+++ b/include/AdblockPlus/JsEngine.h |
@@ -127,6 +127,10 @@ namespace AdblockPlus |
/** |
* Creates a new JavaScript engine instance. |
+ * |
+ * When a parameter value is nullptr the corresponding default |
+ * implementation is chosen. |
+ * |
* @param appInfo Information about the app. |
* @param timer Implementation of timer. |
* @param fileSystem Implementation of filesystem. |
@@ -135,10 +139,8 @@ namespace AdblockPlus |
* @return New `JsEngine` instance. |
*/ |
static JsEnginePtr New(const AppInfo& appInfo = AppInfo(), |
- TimerPtr timer = CreateDefaultTimer(), |
- FileSystemPtr fileSystem = CreateDefaultFileSystem(), |
- WebRequestPtr webRequest = CreateDefaultWebRequest(), |
- LogSystemPtr logSystem = CreateDefaultLogSystem()); |
+ TimerPtr timer = nullptr, FileSystemPtr fileSystem = nullptr, |
+ WebRequestPtr webRequest = nullptr, LogSystemPtr logSystem = nullptr); |
/** |
* Registers the callback function for an event. |