diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-03-22 19:54:25 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-03-22 19:54:25 +1100 |
| commit | 2dd69b3d967aea4715746d827b88436822bfc41f (patch) | |
| tree | 7b6f1a419c50ebb43d0c867356d620eca82d0fb3 /src/regex.cc | |
| parent | 794e7ce51c7b2256ebc98cf8b7c8d4291dcba382 (diff) | |
Make CompiledRegex not a RefCountable
Keep this closer to the point of use, avoid pull ref_ptr.hpp into
regex_impl.hpp
Diffstat (limited to 'src/regex.cc')
| -rw-r--r-- | src/regex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex.cc b/src/regex.cc index df5af661..b62bdddf 100644 --- a/src/regex.cc +++ b/src/regex.cc @@ -6,10 +6,10 @@ namespace Kakoune { Regex::Regex(StringView re, RegexCompileFlags flags) - : m_impl{new CompiledRegex{}}, + : m_impl{new Impl{}}, m_str{re.str()} { - *m_impl = compile_regex(re, flags); + static_cast<CompiledRegex&>(*m_impl) = compile_regex(re, flags); } int Regex::named_capture_index(StringView name) const |
