mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 41f03ff16f47 (bug 1163505) for bustage.
This commit is contained in:
parent
379f102b93
commit
9bc9a44e62
@ -16,18 +16,6 @@ namespace mozilla
|
||||
template <class T> class PtrVector
|
||||
{
|
||||
public:
|
||||
PtrVector() = default;
|
||||
PtrVector(const PtrVector&) = delete;
|
||||
PtrVector(PtrVector&& aOther)
|
||||
: values(std::move(aOther.values))
|
||||
{}
|
||||
PtrVector& operator=(const PtrVector&) = delete;
|
||||
PtrVector& operator=(PtrVector&& aOther)
|
||||
{
|
||||
std::swap(values, aOther.values);
|
||||
return *this;
|
||||
}
|
||||
|
||||
~PtrVector()
|
||||
{
|
||||
for (T* value : values) { delete value; }
|
||||
|
Loading…
Reference in New Issue
Block a user