From 4d73e57c6911772a4672a4c7e9e7faa45f124c4d Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 17 May 2023 14:29:45 +0200 Subject: [PATCH] Fix Query. Correctly include `org_kiwix_libwzim_Query.h`. Property set the return type of setNativeQuery to void. --- lib/src/main/cpp/libzim/query.cpp | 2 +- lib/src/main/java/org/kiwix/libzim/Query.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/cpp/libzim/query.cpp b/lib/src/main/cpp/libzim/query.cpp index 6117b4d..874da9e 100644 --- a/lib/src/main/cpp/libzim/query.cpp +++ b/lib/src/main/cpp/libzim/query.cpp @@ -20,7 +20,7 @@ #include #include -#include "org_kiwix_libzim_Searcher.h" +#include "org_kiwix_libzim_Query.h" #include diff --git a/lib/src/main/java/org/kiwix/libzim/Query.java b/lib/src/main/java/org/kiwix/libzim/Query.java index 75599b5..1fb7abb 100644 --- a/lib/src/main/java/org/kiwix/libzim/Query.java +++ b/lib/src/main/java/org/kiwix/libzim/Query.java @@ -37,6 +37,6 @@ public class Query public native void dispose(); // A pointer (as a long) to a native Handle - private native long setNativeQuery(String query); + private native void setNativeQuery(String query); private long nativeHandle; }