Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/JniJsEngine.cpp

Issue 29503591: Issue 5473 - update to libadblockplus revision b4d6e55f2116 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: updated dependencies file to use updated -binaries Created Aug. 8, 2017, 5:25 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus-android/jni/JniFilterEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « libadblockplus-android/jni/JniFilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld