[turbine] Cleanup applicationData
All checks were successful
Build / build (push) Successful in 2m38s

This commit is contained in:
Gary Talent 2024-03-17 20:59:14 -05:00
parent 205f2a698c
commit 6a52319156

View File

@ -60,7 +60,7 @@ struct Wrap: public WrapBase {
class WrapPtr { class WrapPtr {
private: private:
WrapBase *m_wrapPtr{}; WrapBase *m_wrapPtr{};
ox::Array<char, sizeof(WrapBase) + sizeof(void*)> m_wrapData; ox::Array<char, sizeof(Wrap<void*>)> m_wrapData;
public: public:
template<typename T> template<typename T>
inline WrapPtr &operator=(T *ptr) noexcept { inline WrapPtr &operator=(T *ptr) noexcept {
@ -88,7 +88,7 @@ void setApplicationDataRaw(Context &ctx, WrapBase &applicationData) noexcept;
template<typename T> template<typename T>
void setApplicationData(Context &ctx, T *applicationData) noexcept { void setApplicationData(Context &ctx, T *applicationData) noexcept {
Wrap<T> w(applicationData); Wrap w(applicationData);
setApplicationDataRaw(ctx, w); setApplicationDataRaw(ctx, w);
} }