Index: libadblockplus-android/jni/JniShowNotificationCallback.cpp |
diff --git a/libadblockplus-android/jni/JniShowNotificationCallback.cpp b/libadblockplus-android/jni/JniShowNotificationCallback.cpp |
index 0bd980a5e9d3d3bab924aedcba989e9d67c8b3cb..605bb939551ac69f67d88941a2b4e11debb32515 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, std::move(notification))); |
env->CallVoidMethod(GetCallbackObject(), method, *jNotification); |
} |