From cfd58d5e1cac85d3f2f53a1382cbc570adfa146c Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 4 Oct 2024 09:43:01 +0800 Subject: [PATCH] use contains instead of exist --- inc/hgl/type/RefObjectPool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/hgl/type/RefObjectPool.h b/inc/hgl/type/RefObjectPool.h index 2a38055..7fab752 100644 --- a/inc/hgl/type/RefObjectPool.h +++ b/inc/hgl/type/RefObjectPool.h @@ -74,12 +74,12 @@ namespace hgl /** * 确定指定key是否在活跃列表 */ - bool KeyExistActive(const K &key)const{return active_items.ContainsKey(key);} + bool ContainsActiveKey(const K &key)const{return active_items.ContainsKey(key);} /** * 确定指定key是否在闲置列表 */ - bool KeyExistIdle(const K &key)const{return idle_items.ContainsKey(key);} + bool ContainsIdleKey(const K &key)const{return idle_items.ContainsKey(key);} /** * 确定指定key是否在列表中(包括活跃列表和闲置列表)