diff --git a/deps/ox/src/ox/std/anyptr.hpp b/deps/ox/src/ox/std/anyptr.hpp index bc0c460a..9d566ad7 100644 --- a/deps/ox/src/ox/std/anyptr.hpp +++ b/deps/ox/src/ox/std/anyptr.hpp @@ -30,7 +30,7 @@ class AnyPtrT { template struct Wrap final: WrapBase { T *data{}; - constexpr Wrap(T *pData) noexcept: data(pData) { + explicit constexpr Wrap(T *pData) noexcept: data(pData) { } constexpr WrapBase *copyTo(ox::Span s) noexcept override { oxAssert(s.size() >= sizeof(Wrap), "too small buffer"); @@ -44,7 +44,7 @@ class AnyPtrT { return data != nullptr; } constexpr void free() noexcept override { - ox::safeDelete(data); + safeDelete(data); data = {}; } };