瀏覽代碼

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

Andreas Kling 6 年之前
父節點
當前提交
38c80d5e6d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)