diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index 2e0f633fb..cb744e61d 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -554,7 +554,11 @@ namespace kiwix { /* Insert if possible */ if (insert) { - this->suggestions.insert(suggestionItr, std::vector{articleItr->getTitle(), articleFinalUrl, normalizedArticleTitle}); + std::vector suggestion; + suggestion.push_back(articleItr->getTitle()); + suggestion.push_back(articleFinalUrl); + suggestion.push_back(normalizedArticleTitle); + this->suggestions.insert(suggestionItr, suggestion); } /* Suggestions where found */