mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
LibRegex: Avoid use-after-move of trivial object
This is not an actual problem as the object is just an enum, but clion was bugging me.
This commit is contained in:
parent
5876417357
commit
7ceeb85ba7
Notes:
github-actions[bot]
2025-01-17 09:35:24 +00:00
Author: https://github.com/alimpfard
Commit: 7ceeb85ba7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3261
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ Regex<Parser>::Regex(regex::Parser::Result parse_result, ByteString pattern, typ
|
||||||
{
|
{
|
||||||
run_optimization_passes();
|
run_optimization_passes();
|
||||||
if (parser_result.error == regex::Error::NoError)
|
if (parser_result.error == regex::Error::NoError)
|
||||||
matcher = make<Matcher<Parser>>(this, regex_options | static_cast<decltype(regex_options.value())>(parse_result.options.value()));
|
matcher = make<Matcher<Parser>>(this, regex_options | static_cast<decltype(regex_options.value())>(parser_result.options.value()));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class Parser>
|
template<class Parser>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue