1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

AK: Allow constructing an empty NonnullRefPtrVector.

This commit is contained in:
Andreas Kling 2019-06-27 13:23:10 +02:00
parent 7cc9ce8380
commit 9ab3718266

View file

@ -10,6 +10,10 @@ class NonnullRefPtrVector : public Vector<NonnullRefPtr<T>, inline_capacity> {
typedef Vector<NonnullRefPtr<T>> Base; typedef Vector<NonnullRefPtr<T>> Base;
public: public:
NonnullRefPtrVector()
{
}
NonnullRefPtrVector(Vector<NonnullRefPtr<T>>&& other) NonnullRefPtrVector(Vector<NonnullRefPtr<T>>&& other)
: Base(static_cast<Base&&>(other)) : Base(static_cast<Base&&>(other))
{ {