1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

Update vector.h

This commit is contained in:
Victor Stewart 2020-02-24 17:02:02 -05:00 committed by GitHub
parent d4df8246d2
commit 4f0234a839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1013,6 +1013,12 @@ public:
UVector<void*>::move(source); // add to end and reset source
}
explicit UVector(const UVector<UString>& starting) : UVector(starting.size())
{
U_TRACE_CTOR(0, UVector<UString>, "copy ctor")
this->copy(starting);
}
~UVector()
{
@ -1320,7 +1326,7 @@ public:
else UVector<void*>::sort();
}
void copy(UVector<UString>& source)
void copy(const UVector<UString>& source)
{
U_TRACE(0, "UVector<UString>::copy(%p)", &source)