Pārlūkot izejas kodu

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

Andreas Kling 6 gadi atpakaļ
vecāks
revīzija
38c80d5e6d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)