Take iterators by const-ref in ThreadedRegexVM::exec

This commit is contained in:
Maxime Coste 2018-12-19 19:14:42 +11:00
parent d2f2c3d0c7
commit 0b9f782691

View File

@ -184,8 +184,8 @@ public:
} }
} }
bool exec(Iterator begin, Iterator end, bool exec(const Iterator& begin, const Iterator& end,
Iterator subject_begin, Iterator subject_end, const Iterator& subject_begin, const Iterator& subject_end,
RegexExecFlags flags) RegexExecFlags flags)
{ {
if (flags & RegexExecFlags::NotInitialNull and begin == end) if (flags & RegexExecFlags::NotInitialNull and begin == end)