commit 2025-08-26 00:29 edit 'ZtCObjNew& operator=(const ZtCObjNew& rhs)' in ZCppMain/ZMainHead.H
This commit is contained in:
@ -3014,18 +3014,10 @@ namespace ZNsMain
|
|||||||
{ return *this; }
|
{ return *this; }
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
|
|
||||||
#if(0)
|
mp_StTypeRefCnt->MO_TypeData =
|
||||||
mp_StTypeRefCnt->MO_TypeData =
|
rhs.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 = rhs.mp_StTypeRefCnt ;
|
return *this; ////////////////////
|
||||||
++mp_StTypeRefCnt->MI_RefCount ;
|
|
||||||
|
|
||||||
return *this; /////////////////////////
|
|
||||||
#endif
|
|
||||||
}/*
|
}/*
|
||||||
ZtCObjNew& operator=(const ZtCObjNew& rhs)*/
|
ZtCObjNew& operator=(const ZtCObjNew& rhs)*/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user