diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2023-02-25 10:44:51 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-06 13:05:43 +0000 |
commit | c0b2fa74ace4a79ffaed4b7d57032e6586b54d97 (patch) | |
tree | ed0813460cebcd9b360d59f7be819e24c5283187 /Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp | |
parent | 70a2ca7fc0939dd0d61691c17e108c6169ef6d30 (diff) | |
download | serenity-c0b2fa74ace4a79ffaed4b7d57032e6586b54d97.zip |
LibWeb: Fix a few const-ness issues
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<DeprecatedString>& set, StringView ite namespace Web::DOM { -WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMTokenList>> DOMTokenList::create(Element const& associated_element, DeprecatedFlyString associated_attribute) +WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMTokenList>> DOMTokenList::create(Element& associated_element, DeprecatedFlyString associated_attribute) { auto& realm = associated_element.realm(); return MUST_OR_THROW_OOM(realm.heap().allocate<DOMTokenList>(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)) |