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;
|
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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue