Further fixes for Remove function on UniquePtrList
continuous-integration/drone/push Build is passing

This commit is contained in:
Deukhoofd committed 2020-06-02 14:40:59 +02:00
1 parent 44fc403fb6
commit 4323e59ed4
1 file changed
+2 -3
+2 -3
View File
@@ -50,9 +50,8 @@ namespace ArbUt {
throw std::logic_error(ss.str()); throw std::logic_error(ss.str());
} }
#endif #endif
auto item = _vector[index]; delete _vector[index];
delete item; _vector.erase(_vector.begin() + index);
_vector.erase(item);
} }
inline bool Contains(const BorrowedPtr<ValueT>& value) const { inline bool Contains(const BorrowedPtr<ValueT>& value) const {