diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index ca9ed869c..11adfe1b7 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -540,7 +540,7 @@ namespace kiwix { article is already in the suggestions list (with an other title) */ bool insert = true; - std::vector>::iterator suggestionItr; + std::vector< std::vector >::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) { diff --git a/src/common/kiwix/reader.h b/src/common/kiwix/reader.h index f21173edd..ba039f34e 100644 --- a/src/common/kiwix/reader.h +++ b/src/common/kiwix/reader.h @@ -86,8 +86,8 @@ namespace kiwix { zim::size_type nsACount; zim::size_type nsICount; - std::vector> suggestions; - std::vector>::iterator suggestionsOffset; + std::vector< std::vector > suggestions; + std::vector< std::vector >::iterator suggestionsOffset; private: std::map parseCounterMetadata(); diff --git a/src/common/stringTools.cpp b/src/common/stringTools.cpp index a0f938e4d..74aea6104 100644 --- a/src/common/stringTools.cpp +++ b/src/common/stringTools.cpp @@ -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); }