[ox/std] Drop ox:: qualifier from safeDelete function for pointee

This commit is contained in:
Gary Talent 2025-01-18 20:56:24 -06:00
parent 92e9d9cbfc
commit 894be237f2

View File

@ -30,7 +30,7 @@ class AnyPtrT {
template<typename T> template<typename T>
struct Wrap final: WrapBase { struct Wrap final: WrapBase {
T *data{}; T *data{};
constexpr Wrap(T *pData) noexcept: data(pData) { explicit constexpr Wrap(T *pData) noexcept: data(pData) {
} }
constexpr WrapBase *copyTo(ox::Span<char> s) noexcept override { constexpr WrapBase *copyTo(ox::Span<char> s) noexcept override {
oxAssert(s.size() >= sizeof(Wrap), "too small buffer"); oxAssert(s.size() >= sizeof(Wrap), "too small buffer");
@ -44,7 +44,7 @@ class AnyPtrT {
return data != nullptr; return data != nullptr;
} }
constexpr void free() noexcept override { constexpr void free() noexcept override {
ox::safeDelete(data); safeDelete(data);
data = {}; data = {};
} }
}; };