From ee4ba97e3ea6553cc224bc2942f59c603c07e82c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 5 Dec 2024 21:59:36 +1100 Subject: Fix parameter passing in find_next_start --- src/regex_impl.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/regex_impl.hh') 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) -- cgit v1.2.3