mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibRegex: Capture this
explicitly in RegexStringView::equals lambda
This stops clang-tidy from suggesting that this function can be made static, although accessing `this->operator==` in the lambda function.
This commit is contained in:
parent
5885e70df7
commit
0f4a79a24d
Notes:
sideshowbarker
2024-07-17 22:24:51 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 0f4a79a24d
Pull-request: https://github.com/SerenityOS/serenity/pull/11353
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/trflynn89
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ public:
|
|||
|
||||
bool equals(RegexStringView other) const
|
||||
{
|
||||
return other.m_view.visit([&](auto const& view) { return operator==(view); });
|
||||
return other.m_view.visit([this](auto const& view) { return operator==(view); });
|
||||
}
|
||||
|
||||
bool equals_ignoring_case(RegexStringView other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue