summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-12-05 21:59:36 +1100
committerMaxime Coste <mawww@kakoune.org>2024-12-05 21:59:36 +1100
commitee4ba97e3ea6553cc224bc2942f59c603c07e82c (patch)
tree2d50de311da803e9bb2b9614a6c185ecbf314376 /src
parent98ed5847de20f04d0595d5ac08da06ff8aa5c1b2 (diff)
Fix parameter passing in find_next_start
Diffstat (limited to 'src')
-rw-r--r--src/regex_impl.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex_impl.hh b/src/regex_impl.hh
index 4d28ab9b..4fea5cd3 100644
--- a/src/regex_impl.hh
+++ b/src/regex_impl.hh
@@ -540,7 +540,7 @@ private:
}
}
- static Iterator find_next_start(Iterator start, Sentinel end, const StartDesc& start_desc)
+ static Iterator find_next_start(const Iterator& start, const Sentinel& end, const StartDesc& start_desc)
{
auto pos = start;
if (char start_byte = start_desc.start_byte)