diff --git a/AK/Vector.h b/AK/Vector.h index 575965daee2..2870f906710 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -172,6 +172,10 @@ public: void append(Vector&& other) { + if (!m_impl) { + m_impl = move(other.m_impl); + return; + } Vector tmp = move(other); ensure_capacity(size() + tmp.size()); for (auto&& v : tmp) {