Skip to content

Commit 0d73afa

Browse files
committed
Fix Query.
Correctly include `org_kiwix_libwzim_Query.h`. Property set the return type of setNativeQuery to void.
1 parent e13889d commit 0d73afa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/src/main/cpp/libzim/query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include <jni.h>
2222
#include <exception>
23-
#include "org_kiwix_libzim_Searcher.h"
23+
#include "org_kiwix_libzim_Query.h"
2424

2525
#include <utils.h>
2626

lib/src/main/java/org/kiwix/libzim/Query.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public Query(String query) {
3737
public native void dispose();
3838

3939
// A pointer (as a long) to a native Handle
40-
private native long setNativeQuery(String query);
40+
private native void setNativeQuery(String query);
4141
private long nativeHandle;
4242
}

0 commit comments

Comments
 (0)