diff --git a/src/Memory/__UniquePtrList.hpp b/src/Memory/__UniquePtrList.hpp index 19a46fb..344d208 100644 --- a/src/Memory/__UniquePtrList.hpp +++ b/src/Memory/__UniquePtrList.hpp @@ -1,8 +1,8 @@ #ifndef ARBUTILS___UNIQUEPTRLIST_HPP #define ARBUTILS___UNIQUEPTRLIST_HPP -#include "__BorrowedPtr.hpp" #include "../Assert.hpp" +#include "__BorrowedPtr.hpp" namespace ArbUt { /// @brief Collection of pointers that is owned by the list. When the list exits scope, the destructor on all @@ -17,9 +17,7 @@ namespace ArbUt { inline UniquePtrList() noexcept : _vector() {} /// @brief Initialises a UniquePtrList from a std::vector of raw pointers. /// @param vec A std::vector of raw pointers. - inline UniquePtrList(const std::vector& vec) noexcept : _vector(vec) { - AssertAllNotNull(vec); - } + inline UniquePtrList(const std::vector& vec) noexcept : _vector(vec) { AssertAllNotNull(vec); } /// @brief Initialises a UniquePtrList with a certain capacity reserved for use. This does not set immediate /// size. /// @param capacity The desired capacity.