mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-17 07:41:54 +00:00
LibWeb: Fix LibWeb build with Clang
Clang doesn't like unused lambda captures.
This commit is contained in:
parent
3c01ef1c23
commit
647576ec13
Notes:
sideshowbarker
2024-07-17 18:15:06 +09:00
Author: https://github.com/awesomekling
Commit: 647576ec13
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue