Index: libadblockplus-android/jni/JniJsEngine.cpp |
diff --git a/libadblockplus-android/jni/JniJsEngine.cpp b/libadblockplus-android/jni/JniJsEngine.cpp |
index 7bc78faaace27a3ccd8300c8bada1bc6dc787e9b..0832f5982122ca79b721858e6d09a78c32c9a7c9 100644 |
--- a/libadblockplus-android/jni/JniJsEngine.cpp |
+++ b/libadblockplus-android/jni/JniJsEngine.cpp |
@@ -16,6 +16,7 @@ |
*/ |
#include <AdblockPlus.h> |
+#include <AdblockPlus/DefaultFileSystem.h> |
#include "Utils.h" |
#include "JniCallbacks.h" |
#include "JniJsEngine.h" |
@@ -139,10 +140,10 @@ static void JNICALL JniSetDefaultFileSystem(JNIEnv* env, jclass clazz, jlong ptr |
try |
{ |
- AdblockPlus::FileSystemPtr fileSystem(new AdblockPlus::DefaultFileSystem()); |
+ auto fileSystem = std::make_shared<AdblockPlus::DefaultFileSystemSync>(); |
std::string basePath = JniJavaToStdString(env, jBasePath); |
- reinterpret_cast<AdblockPlus::DefaultFileSystem*>(fileSystem.get())->SetBasePath(basePath); |
+ fileSystem->SetBasePath(basePath); |
engine->SetFileSystem(fileSystem); |
} |