From 775b55c3b0e0b401e87fc83aa6504b38a90932ae Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 24 Jan 2023 15:21:22 +0100 Subject: [PATCH] Fix wrong implementation in Book. As `update` is overloaded, the jni method name include the argument type. And we have changed the type of one version of `update`, so we need to change its name. --- lib/src/main/cpp/libkiwix/book.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/cpp/libkiwix/book.cpp b/lib/src/main/cpp/libkiwix/book.cpp index ba69a74..81ec03b 100644 --- a/lib/src/main/cpp/libkiwix/book.cpp +++ b/lib/src/main/cpp/libkiwix/book.cpp @@ -41,7 +41,7 @@ METHOD(void, update__Lorg_kiwix_libkiwix_Book_2, jobject otherBook) THIS->update(*getPtr(env, otherBook)); } -METHOD(void, update__Lorg_kiwix_libkiwix_JNIKiwixReader_2, jobject archive) +METHOD(void, update__Lorg_kiwix_libzim_Archive_2, jobject archive) { THIS->update(*getPtr(env, archive)); }