Bläddra i källkod

LibHTML: Make some use of Vector::empend().

Andreas Kling 6 år sedan
förälder
incheckning
38c80d5e6d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Libraries/LibHTML/DOM/Element.cpp

+ 1 - 1
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<Attribute>&& attributes)