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

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

Issue 29422558: Issue 5167 - Update to use libadblockplus revision dca8df9af1a7 (Closed)
Patch Set: updated dependencies (..-binaries) Created May 10, 2017, 6:54 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/JniCallbacks.h ('k') | libadblockplus-android/jni/JniFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/jni/JniEventCallback.cpp
diff --git a/libadblockplus-android/jni/JniEventCallback.cpp b/libadblockplus-android/jni/JniEventCallback.cpp
index 62733e5f91d8dbefba1ed30d6a8fc544a7033041..1601993c738f359f031d36b8733d79324601a572 100644
--- a/libadblockplus-android/jni/JniEventCallback.cpp
+++ b/libadblockplus-android/jni/JniEventCallback.cpp
@@ -36,7 +36,7 @@ JniEventCallback::JniEventCallback(JNIEnv* env, jobject callbackObject)
{
}
-void JniEventCallback::Callback(AdblockPlus::JsValueList& params)
+void JniEventCallback::Callback(AdblockPlus::JsValueList&& params)
{
JNIEnvAcquire env(GetJavaVM());
@@ -47,7 +47,7 @@ void JniEventCallback::Callback(AdblockPlus::JsValueList& params)
if (method)
{
- jobject jsList = JniJsValueListToArrayList(*env, params);
+ jobject jsList = JniJsValueListToArrayList(*env, std::move(params));
env->CallVoidMethod(GetCallbackObject(), method, jsList);
}
}
« no previous file with comments | « libadblockplus-android/jni/JniCallbacks.h ('k') | libadblockplus-android/jni/JniFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld