From 5b8c1548ea37f631ca38aac789692f7b9e2e741d Mon Sep 17 00:00:00 2001 From: NewtonDynamics Date: Sun, 5 Jan 2025 08:06:54 -0800 Subject: [PATCH] Update ndWeakPtr.h more complier errors fixed for linux --- newton-4.00/sdk/dCore/ndWeakPtr.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/newton-4.00/sdk/dCore/ndWeakPtr.h b/newton-4.00/sdk/dCore/ndWeakPtr.h index 3b078ff8f..b743aeb7a 100644 --- a/newton-4.00/sdk/dCore/ndWeakPtr.h +++ b/newton-4.00/sdk/dCore/ndWeakPtr.h @@ -39,8 +39,8 @@ ndWeakPtr::ndWeakPtr(const ndWeakPtr& other) :ndSharedPtr(other) { ndAssert(0); - ndAssert(m_references); - m_references->m_weakRef.fetch_add(1); + ndAssert(ndSharedPtr::m_references); + ndSharedPtr::m_references->m_weakRef.fetch_add(1); } template @@ -48,17 +48,17 @@ ndWeakPtr::ndWeakPtr(const ndSharedPtr& ptr) :ndSharedPtr(ptr) { ndAssert(0); - ndAssert(m_references); + ndAssert(ndSharedPtr::m_references); } template ndWeakPtr::~ndWeakPtr() { ndAssert(0); - m_references->m_weakRef.fetch_add(-1); + ndAssert(ndSharedPtr::m_references); + ndSharedPtr::m_references->m_weakRef.fetch_add(-1); } - template ndWeakPtr& ndWeakPtr::operator=(const ndWeakPtr& other) {