mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-15 11:26:36 +02:00
The copy constructors and copy assignment operators can't propagate allocation failures. As a replacement, introduce a new member function, Vector::clone() that returns an ErrorOr<Vector>. This commit replaces most usages of the Vector copy constructor by either using .clone() or avoiding copies in the first place.