From 39514258605464266e761fdb4d212413f4b66eec Mon Sep 17 00:00:00 2001 From: sauron Date: Tue, 26 Aug 2025 00:30:13 +0900 Subject: [PATCH] commit 2025-08-26 00:29 edit 'ZtCObjNew& operator=(const ZtCObjNew& rhs)' in ZCppMain/ZMainHead.H --- ZCppMain/ZMainHead.H | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index 6487d28..7e2d019 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -3014,18 +3014,10 @@ namespace ZNsMain { return *this; } /*++++++++++++++++++++++++++++++++++++++++++++++++++*/ - #if(0) - mp_StTypeRefCnt->MO_TypeData = - rhs.mp_StTypeRefCnt->MO_TypeData; return *this; - #else - if(--mp_StTypeRefCnt->MI_RefCount <= 0) - this->ZCAllocator::DeleteMem(mp_StTypeRefCnt); + mp_StTypeRefCnt->MO_TypeData = + rhs.mp_StTypeRefCnt->MO_TypeData ; - mp_StTypeRefCnt = rhs.mp_StTypeRefCnt ; - ++mp_StTypeRefCnt->MI_RefCount ; - - return *this; ///////////////////////// - #endif + return *this; //////////////////// }/* ZtCObjNew& operator=(const ZtCObjNew& rhs)*/