commit 2025-09-29 19:48 edit a bit ZCppMain/ZMainHead.H
This commit is contained in:
@ -5498,8 +5498,8 @@ namespace ZNsMain
|
|||||||
|
|
||||||
ZtCBaseList& operator=(const ZtCBaseList& rhs)
|
ZtCBaseList& operator=(const ZtCBaseList& rhs)
|
||||||
{
|
{
|
||||||
// 초기에 DeleteAll() 로 다 삭제하고 필요한 만큼 AddTail()
|
// 초기에 DeleteAll() 로 다 삭제하고, 필요한 만큼
|
||||||
// 을 호출하고 있는데, 최적화의 여지가 있다.
|
// AddTail() 을 호출하고 있는데, 최적화의 여지가 있다.
|
||||||
|
|
||||||
if(this==&rhs) return *this; this->DeleteAll();
|
if(this==&rhs) return *this; this->DeleteAll();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user