From 38c80d5e6d214bcc3a2078d752d1eb3975297e6a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 1 Aug 2019 16:50:15 +0200 Subject: [PATCH] LibHTML: Make some use of Vector::empend(). --- Libraries/LibHTML/DOM/Element.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibHTML/DOM/Element.cpp b/Libraries/LibHTML/DOM/Element.cpp index e9329e15f3..40f3fc53fe 100644 --- a/Libraries/LibHTML/DOM/Element.cpp +++ b/Libraries/LibHTML/DOM/Element.cpp @@ -42,7 +42,7 @@ void Element::set_attribute(const String& name, const String& value) if (auto* attribute = find_attribute(name)) attribute->set_value(value); else - m_attributes.append({ name, value }); + m_attributes.empend(name, value); } void Element::set_attributes(Vector&& attributes)