From 72e41082ca13af58288ead92f1ca46725dae7c0b Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 29 Mar 2017 17:12:23 +0200 Subject: [PATCH] The `Result` class is not in the `kiwix` namespace. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commit 83d2725 adapt the jni wrapper to the new search API but try to use the `Result` class from the `kiwix` namespace but `Result` is not in the namespace. A correct fix would be to move `Result` in `kiwix` but it also change the APIĀ for other tools (kiwix-tools). As we will move the search functionality in `zimlib` it is better to just do this silly fix and update the APIĀ latter when moving the search functionality. --- src/android/kiwix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/kiwix.cpp b/src/android/kiwix.cpp index 88076a9ff..94a6ab79d 100644 --- a/src/android/kiwix.cpp +++ b/src/android/kiwix.cpp @@ -460,7 +460,7 @@ JNIEXPORT jstring JNICALL Java_org_kiwix_kiwixlib_JNIKiwix_indexedQuery (JNIEnv *env, jclass obj, jstring query, jint count) { std::string cQuery = jni2c(query, env); unsigned int cCount = jni2c(count); - kiwix::Result *p_result; + Result *p_result; std::string result; pthread_mutex_lock(&searcherLock);