1
Fork 0
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:
Hendiadyoin1 2021-12-21 18:08:36 +01:00 committed by Brian Gianforcaro
parent 5885e70df7
commit 0f4a79a24d

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