summaryrefslogtreecommitdiff
path: root/src/regex.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-10 19:33:46 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-10 19:50:22 +0000
commit3c1a325b6f7c67c530d99aaaedf5f8c96f2b2de6 (patch)
treef6cdaf2eec33dee178e3c888f5120ea43479b157 /src/regex.cc
parenta0cf75ec39c679776b28b178a4299cf0ad204a1c (diff)
Refactor String, use a common StringOps interface, hide std::string
Diffstat (limited to 'src/regex.cc')
-rw-r--r--src/regex.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regex.cc b/src/regex.cc
index d2c8f615..23916036 100644
--- a/src/regex.cc
+++ b/src/regex.cc
@@ -7,7 +7,8 @@ namespace Kakoune
String option_to_string(const Regex& re)
{
- return String{re.str()};
+ const auto& str = re.str();
+ return String{str.begin(), str.end()};
}
void option_from_string(StringView str, Regex& re)