From 4d8b4d8c7322cb09c533f9eaf73140dc79bd63fa Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 23 Jan 2020 20:23:18 +0800 Subject: [PATCH] fix use "Find" Function of parent class --- inc/hgl/type/List.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/hgl/type/List.h b/inc/hgl/type/List.h index 72b9d56..d815249 100644 --- a/inc/hgl/type/List.h +++ b/inc/hgl/type/List.h @@ -139,7 +139,7 @@ namespace hgl virtual void Clear(); ///<清除所有数据 virtual void ClearData(); ///<清除所有数据,但不清空缓冲区 - virtual bool IsExist(const T *flag)const{return Find((T *)flag)!=-1;} ///<确认数据项是否存在 + virtual bool IsExist(const T *flag)const{return this->Find((T *)flag)!=-1;} ///<确认数据项是否存在 virtual bool Unlink(int index){return List::Delete(index);} ///<将指定索引处的数据与列表断开 virtual bool UnlinkMove(int index){return List::DeleteMove(index);} ///<将指定索引处的数据与列表断开,将前移后面的数据