mirror of https://github.com/kiwix/libkiwix.git
Comment out previous definitions
This commit is contained in:
parent
74bd482335
commit
daaadf3e1c
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue