mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +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
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