summaryrefslogtreecommitdiff
path: root/src/keys.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-09-23 19:39:21 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-09-23 19:39:21 +0100
commit27571a77165f5cba2f7d0a7e335a4241dda91df7 (patch)
treef9c565b35717170bed6d09c22c419b63939ac64a /src/keys.cc
parentb5972cd6475e354c4432f2adf94fff73807daad3 (diff)
Refactor utf8::iterator to be on the safe side
utf8::iterator now knows the iterator valid range, and pass it to utf8 functions.
Diffstat (limited to 'src/keys.cc')
-rw-r--r--src/keys.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keys.cc b/src/keys.cc
index 349cbd53..4b9a83ec 100644
--- a/src/keys.cc
+++ b/src/keys.cc
@@ -58,7 +58,7 @@ KeyList parse_keys(StringView str)
{
KeyList result;
using Utf8It = utf8::iterator<const char*>;
- for (Utf8It it = str.begin(), str_end = str.end(); it < str_end; ++it)
+ for (Utf8It it{str.begin(), str}, str_end{str.end(), str}; it < str_end; ++it)
{
if (*it != '<')
{