From daac1698d6eaf80623b6a17efc402073be0307de Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 11 May 2014 12:51:37 +0100 Subject: [PATCH] use StringView in word_db.cc --- src/word_db.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/word_db.cc b/src/word_db.cc index e9b05795..62e19290 100644 --- a/src/word_db.cc +++ b/src/word_db.cc @@ -6,12 +6,12 @@ namespace Kakoune { -static std::vector get_words(const String& content) +static std::vector get_words(StringView content) { std::vector res; - using Iterator = utf8::utf8_iterator; - auto word_start = content.begin(); + const char* word_start = content.begin(); bool in_word = false; for (Iterator it{word_start}, end{content.end()}; it != end; ++it) {