summaryrefslogtreecommitdiff
path: root/src/regex.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-02-04 23:52:06 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-02-04 23:54:22 +0000
commita8eddd03f0e328b08d23ec9f83c5c61e9a9b202a (patch)
tree785b26eafd774e82a24ffca1c3b5cf9534e2a2b3 /src/regex.cc
parent80f7a350e41bdf9c3011bb1e5ce0cf23bd405b5e (diff)
String usage cleanups
Diffstat (limited to 'src/regex.cc')
-rw-r--r--src/regex.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/regex.cc b/src/regex.cc
index 39a298cc..686e94c4 100644
--- a/src/regex.cc
+++ b/src/regex.cc
@@ -7,8 +7,7 @@ namespace Kakoune
String option_to_string(const Regex& re)
{
- const auto& str = re.str();
- return {str.begin(), str.end()};
+ return re.str();
}
void option_from_string(StringView str, Regex& re)