diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-10 19:33:46 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-10 19:50:22 +0000 |
| commit | 3c1a325b6f7c67c530d99aaaedf5f8c96f2b2de6 (patch) | |
| tree | f6cdaf2eec33dee178e3c888f5120ea43479b157 /src/regex.cc | |
| parent | a0cf75ec39c679776b28b178a4299cf0ad204a1c (diff) | |
Refactor String, use a common StringOps interface, hide std::string
Diffstat (limited to 'src/regex.cc')
| -rw-r--r-- | src/regex.cc | 3 |
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) |
