mirror of https://github.com/kiwix/libkiwix.git
Simplify suggestion init
This commit is contained in:
parent
a1486e05d3
commit
009d08fe89
|
@ -554,7 +554,11 @@ namespace kiwix {
|
|||
|
||||
/* Insert if possible */
|
||||
if (insert) {
|
||||
this->suggestions.insert(suggestionItr, std::vector<std::string>{articleItr->getTitle(), articleFinalUrl, normalizedArticleTitle});
|
||||
std::vector<std::string> suggestion;
|
||||
suggestion.push_back(articleItr->getTitle());
|
||||
suggestion.push_back(articleFinalUrl);
|
||||
suggestion.push_back(normalizedArticleTitle);
|
||||
this->suggestions.insert(suggestionItr, suggestion);
|
||||
}
|
||||
|
||||
/* Suggestions where found */
|
||||
|
|
Loading…
Reference in New Issue