Skip to content

Commit

Permalink
Small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Flixtastic committed Jan 15, 2025
1 parent bea5936 commit 349be6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/IndexImpl.Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ cppcoro::generator<WordsFileLine> IndexImpl::wordsInTextRecords(
textView = textView.substr(0, textView.rfind('"'));
textView.remove_prefix(1);
for (auto word : tokenizeAndNormalizeText(textView, localeManager)) {
WordsFileLine wordLine{word, false, contextId, 1};
WordsFileLine wordLine{std::move(word), false, contextId, 1};
co_yield wordLine;
}
contextId = contextId.incremented();
Expand Down

0 comments on commit 349be6d

Please sign in to comment.