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

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

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/JniNotification.cpp
diff --git a/libadblockplus-android/jni/JniNotification.cpp b/libadblockplus-android/jni/JniNotification.cpp
index affec085297ede4b671a696f9bcc35d74e7d40a5..cd7069bc197de2866c55aff4e55930217b2f27a7 100644
--- a/libadblockplus-android/jni/JniNotification.cpp
+++ b/libadblockplus-android/jni/JniNotification.cpp
@@ -37,7 +37,7 @@ void JniNotification_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved)
static AdblockPlus::Notification* GetNotificationPtr(jlong ptr)
{
- return JniLongToTypePtr<AdblockPlus::NotificationPtr>(ptr)->get();
+ return JniLongToTypePtr<AdblockPlus::Notification>(ptr);
sergei 2017/04/26 09:21:00 as far as I remember we store the pointer in Java
anton 2017/04/26 10:22:59 No, we do create the same object class as it was p
sergei 2017/04/26 14:12:56 Let's consider an example with Notification. Java
anton 2017/04/27 06:21:01 We pass just `long` value to Java side without any
}
static jobject JNICALL JniGetType(JNIEnv* env, jclass clazz, jlong ptr)

Powered by Google App Engine
This is Rietveld