[ox/std] Drop ox:: qualifier from safeDelete function for pointee
This commit is contained in:
parent
92e9d9cbfc
commit
894be237f2
4
deps/ox/src/ox/std/anyptr.hpp
vendored
4
deps/ox/src/ox/std/anyptr.hpp
vendored
@ -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 = {};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user