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;
}
JNIEXPORT jboolean JNICALL
/*JNIEXPORT jboolean JNICALL
Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env,
jobject obj,
jobject titleObj)
@ -369,7 +369,7 @@ Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env,
}
return retVal;
}
}*/
JNIEXPORT jboolean JNICALL
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 getNextSuggestion(JNIKiwixString title);
/*public native boolean getNextSuggestion(JNIKiwixString title);*/
public native boolean getNextSuggestion(JNIKiwixString title, JNIKiwixString url);

View File

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