Further fixes for Remove function on UniquePtrList

This commit is contained in:
Deukhoofd 2020-06-02 14:40:59 +02:00
parent 44fc403fb6
commit 4323e59ed4
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 3 additions and 4 deletions

View File

@ -50,9 +50,8 @@ namespace ArbUt {
throw std::logic_error(ss.str());
}
#endif
auto item = _vector[index];
delete item;
_vector.erase(item);
delete _vector[index];
_vector.erase(_vector.begin() + index);
}
inline bool Contains(const BorrowedPtr<ValueT>& value) const {