Преглед изворни кода

LibWeb: Fix LibWeb build with Clang

Clang doesn't like unused lambda captures.
Andreas Kling пре 3 година
родитељ
комит
647576ec13
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp

+ 1 - 1
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);
     });
 }