From c0b2fa74ace4a79ffaed4b7d57032e6586b54d97 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 25 Feb 2023 10:44:51 -0700 Subject: LibWeb: Fix a few const-ness issues --- Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp') diff --git a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp index ba0fddd7a1..ab85a1cf59 100644 --- a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp +++ b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp @@ -52,14 +52,14 @@ inline void replace_in_ordered_set(Vector& set, StringView ite namespace Web::DOM { -WebIDL::ExceptionOr> DOMTokenList::create(Element const& associated_element, DeprecatedFlyString associated_attribute) +WebIDL::ExceptionOr> DOMTokenList::create(Element& associated_element, DeprecatedFlyString associated_attribute) { auto& realm = associated_element.realm(); return MUST_OR_THROW_OOM(realm.heap().allocate(realm, associated_element, move(associated_attribute))); } // https://dom.spec.whatwg.org/#ref-for-domtokenlist%E2%91%A0%E2%91%A2 -DOMTokenList::DOMTokenList(Element const& associated_element, DeprecatedFlyString associated_attribute) +DOMTokenList::DOMTokenList(Element& associated_element, DeprecatedFlyString associated_attribute) : Bindings::LegacyPlatformObject(associated_element.realm()) , m_associated_element(associated_element) , m_associated_attribute(move(associated_attribute)) -- cgit v1.2.3