From 894be237f29d11ccebb5d583a928a3e5ced7c5f5 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 18 Jan 2025 20:56:24 -0600 Subject: [PATCH] [ox/std] Drop ox:: qualifier from safeDelete function for pointee --- deps/ox/src/ox/std/anyptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = {}; } };