summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-26 12:18:00 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-26 12:18:39 +0100
commit647576ec13f6be9f2b7f7c9ef4fef8aaf083f5f2 (patch)
treebf17c3764c93fac7db8118279a603e9c1840a5c6 /Userland
parent3c01ef1c2320647d9e1aadc995147690edce2444 (diff)
downloadserenity-647576ec13f6be9f2b7f7c9ef4fef8aaf083f5f2.zip
LibWeb: Fix LibWeb build with Clang
Clang doesn't like unused lambda captures.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp2
1 files changed, 1 insertions, 1 deletions
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<DOM::HTMLCollection> 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<HTMLFormElement&>(*this), [this](Element const& element) {
+ return DOM::HTMLCollection::create(const_cast<HTMLFormElement&>(*this), [](Element const& element) {
return is_form_control(element);
});
}