diff --git a/Userland/Libraries/LibRegex/RegexMatch.h b/Userland/Libraries/LibRegex/RegexMatch.h index c0b91fde4c..a274711bdc 100644 --- a/Userland/Libraries/LibRegex/RegexMatch.h +++ b/Userland/Libraries/LibRegex/RegexMatch.h @@ -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