Simplify suggestion init

This commit is contained in:
Emmanuel Engelhart 2015-08-22 15:42:21 +02:00
parent a1486e05d3
commit 009d08fe89
1 changed files with 5 additions and 1 deletions

View File

@ -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 */