Backed out changeset 41f03ff16f47 (bug 1163505) for bustage.

This commit is contained in:
Ryan VanderMeulen 2015-05-17 18:57:48 -04:00
parent 379f102b93
commit 9bc9a44e62

View File

@ -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; }