From 647576ec13f6be9f2b7f7c9ef4fef8aaf083f5f2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 26 Feb 2022 12:18:00 +0100 Subject: [PATCH] LibWeb: Fix LibWeb build with Clang Clang doesn't like unused lambda captures. --- Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp index 3ab834a5b3..e934642fe9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp @@ -182,7 +182,7 @@ NonnullRefPtr HTMLFormElement::elements() const { // FIXME: This should return the same HTMLFormControlsCollection object every time, // but that would cause a reference cycle since HTMLCollection refs the root. - return DOM::HTMLCollection::create(const_cast(*this), [this](Element const& element) { + return DOM::HTMLCollection::create(const_cast(*this), [](Element const& element) { return is_form_control(element); }); }