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:
Hendiadyoin1 2021-12-21 18:08:36 +01:00 committed by Brian Gianforcaro
commit 0f4a79a24d
Notes: sideshowbarker 2024-07-17 22:24:51 +09:00

View file

@ -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