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

Unified Diff: libadblockplus-android/jni/JniJsValue.h

Issue 29422558: Issue 5167 - Update to use libadblockplus revision dca8df9af1a7 (Closed)
Patch Set: removed unneeded intermediate variable Created April 26, 2017, 6:57 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
Index: libadblockplus-android/jni/JniJsValue.h
diff --git a/libadblockplus-android/jni/JniJsValue.h b/libadblockplus-android/jni/JniJsValue.h
index d90342d61a8c724db85d85fe0fb1b4b968672795..fa7598c1137104adbc07eb6333d197aecc1b9220 100644
--- a/libadblockplus-android/jni/JniJsValue.h
+++ b/libadblockplus-android/jni/JniJsValue.h
@@ -27,12 +27,12 @@ void JniJsValue_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved);
jclass GetJsValueClass();
-jobject NewJniJsValue(JNIEnv* env, const AdblockPlus::JsValuePtr& jsValue, jclass jsValueClass = 0);
+jobject NewJniJsValue(JNIEnv* env, const AdblockPlus::JsValue& jsValue, jclass jsValueClass = 0);
-jobject JniJsValueListToArrayList(JNIEnv* env, AdblockPlus::JsValueList& list);
+jobject JniJsValueListToArrayList(JNIEnv* env, const AdblockPlus::JsValueList& list);
-AdblockPlus::JsValue* JniGetJsValue(jlong ptr);
+AdblockPlus::JsValue* JniGetJsValuePtr(jlong ptr);
anton 2017/04/26 10:22:59 as for me it's more logical "..Ptr()" to return po
sergei 2017/04/26 14:12:56 I agree, why is this comment?
anton 2017/04/27 06:21:00 It's just explanation why 2 methods changed the na
-AdblockPlus::JsValuePtr& JniGetJsValuePtr(jlong ptr);
+AdblockPlus::JsValue& JniGetJsValue(jlong ptr);
#endif /* JNIJSVALUE_H */

Powered by Google App Engine
This is Rietveld