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); |
} |