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

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

Issue 29422558: Issue 5167 - Update to use libadblockplus revision dca8df9af1a7 (Closed)
Patch Set: suggestions by Serge Created April 26, 2017, 10:22 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/JniShowNotificationCallback.cpp
diff --git a/libadblockplus-android/jni/JniShowNotificationCallback.cpp b/libadblockplus-android/jni/JniShowNotificationCallback.cpp
index 0bd980a5e9d3d3bab924aedcba989e9d67c8b3cb..dd4545e6da8d0eee2a30ad18f0898489ab54b211 100644
--- a/libadblockplus-android/jni/JniShowNotificationCallback.cpp
+++ b/libadblockplus-android/jni/JniShowNotificationCallback.cpp
@@ -37,8 +37,7 @@ JniShowNotificationCallback::JniShowNotificationCallback(JNIEnv* env,
{
}
-void JniShowNotificationCallback::Callback(
- const AdblockPlus::NotificationPtr& notificationPtr)
+void JniShowNotificationCallback::Callback(AdblockPlus::Notification& notification)
{
JNIEnvAcquire env(GetJavaVM());
@@ -49,8 +48,7 @@ void JniShowNotificationCallback::Callback(
if (method)
{
- JniLocalReference<jobject> jNotification(*env, NewJniNotification(*env,
- notificationPtr));
+ JniLocalReference<jobject> jNotification(*env, NewJniNotification(*env, notification));
env->CallVoidMethod(GetCallbackObject(), method, *jNotification);
}

Powered by Google App Engine
This is Rietveld