Comment out previous definitions

This commit is contained in:
Aditya-Sood 2019-08-23 14:27:51 +05:30
parent 74bd482335
commit daaadf3e1c
3 changed files with 14 additions and 14 deletions

View File

@ -350,7 +350,7 @@ Java_org_kiwix_kiwixlib_JNIKiwixReader_searchSuggestions(JNIEnv* env,
return retVal; return retVal;
} }
JNIEXPORT jboolean JNICALL /*JNIEXPORT jboolean JNICALL
Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env, Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env,
jobject obj, jobject obj,
jobject titleObj) jobject titleObj)
@ -369,7 +369,7 @@ Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env,
} }
return retVal; return retVal;
} }*/
JNIEXPORT jboolean JNICALL JNIEXPORT jboolean JNICALL
Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env, Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env,

View File

@ -102,7 +102,7 @@ public class JNIKiwixReader
public native boolean searchSuggestions(String prefix, int count); public native boolean searchSuggestions(String prefix, int count);
public native boolean getNextSuggestion(JNIKiwixString title); /*public native boolean getNextSuggestion(JNIKiwixString title);*/
public native boolean getNextSuggestion(JNIKiwixString title, JNIKiwixString url); public native boolean getNextSuggestion(JNIKiwixString title, JNIKiwixString url);

View File

@ -902,20 +902,20 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
} }
/* Get next suggestion */ /* Get next suggestion */
bool Reader::getNextSuggestion(string& title) // bool Reader::getNextSuggestion(string& title)
{ // {
if (this->suggestionsOffset != this->suggestions.end()) { // if (this->suggestionsOffset != this->suggestions.end()) {
/* title */ // /* title */
title = (*(this->suggestionsOffset))[0]; // title = (*(this->suggestionsOffset))[0];
/* increment the cursor for the next call */ // /* increment the cursor for the next call */
this->suggestionsOffset++; // this->suggestionsOffset++;
return true; // return true;
} // }
return false; // return false;
} // }
bool Reader::getNextSuggestion(string& title, string& url) bool Reader::getNextSuggestion(string& title, string& url)
{ {