mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +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: https://github.com/LadybirdBrowser/ladybird/commit/7ceeb85ba72 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();
|
||||
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>
|
||||
|
|
Loading…
Add table
Reference in a new issue