mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
AK: Allow creating NonnullPtrVectors from an initializer list
This was present in Vector already. Clang-format fixed some const positions automatically too. Also removed a now-ambiguous and unnecessary constructor from Shell.
This commit is contained in:
parent
f3877daac5
commit
edc3ed2a0e
2 changed files with 9 additions and 9 deletions
|
@ -306,10 +306,6 @@ public:
|
|||
virtual bool is_list() const override { return true; }
|
||||
virtual bool is_list_without_resolution() const override { return true; }
|
||||
ListValue(Vector<String> values);
|
||||
ListValue(Vector<NonnullRefPtr<Value>> values)
|
||||
: m_contained_values(move(static_cast<NonnullRefPtrVector<Value>&>(values)))
|
||||
{
|
||||
}
|
||||
ListValue(NonnullRefPtrVector<Value> values)
|
||||
: m_contained_values(move(values))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue