mirror of https://github.com/kiwix/libkiwix.git
Fix to get new getSuggestions() working on Android
This commit is contained in:
parent
e829d7428d
commit
f3c4556431
|
@ -540,7 +540,7 @@ namespace kiwix {
|
|||
article is already in the suggestions list (with an other
|
||||
title) */
|
||||
bool insert = true;
|
||||
std::vector<std::vector<std::string>>::iterator suggestionItr;
|
||||
std::vector< std::vector<std::string> >::iterator suggestionItr;
|
||||
for (suggestionItr = this->suggestions.begin(); suggestionItr != this->suggestions.end(); suggestionItr++) {
|
||||
int result = normalizedArticleTitle.compare((*suggestionItr)[2]);
|
||||
if (result == 0 && articleFinalUrl.compare((*suggestionItr)[1]) == 0) {
|
||||
|
|
|
@ -86,8 +86,8 @@ namespace kiwix {
|
|||
zim::size_type nsACount;
|
||||
zim::size_type nsICount;
|
||||
|
||||
std::vector<std::vector<std::string>> suggestions;
|
||||
std::vector<std::vector<std::string>>::iterator suggestionsOffset;
|
||||
std::vector< std::vector<std::string> > suggestions;
|
||||
std::vector< std::vector<std::string> >::iterator suggestionsOffset;
|
||||
|
||||
private:
|
||||
std::map<std::string, unsigned int> parseCounterMetadata();
|
||||
|
|
|
@ -268,5 +268,5 @@ std::string kiwix::toTitle (const std::string &word) {
|
|||
}
|
||||
|
||||
std::string kiwix::normalize (const std::string &word) {
|
||||
return kiwix::removeAccents(kiwix::lcAll(word));
|
||||
return kiwix::lcAll(word);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue