commit 2025-08-26 00:29 edit 'ZtCObjNew& operator=(const ZtCObjNew& rhs)' in ZCppMain/ZMainHead.H

This commit is contained in:
2025-08-26 00:30:13 +09:00
parent 471fa75bc4
commit 3951425860

View File

@ -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)*/