From b0ca13cfb34175fd90c370ded64e8c0f3586b8ec Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Mon, 13 Feb 2023 11:47:53 +0800 Subject: [PATCH] use ObjectMap instead of MapObject. --- inc/hgl/util/hash/Hash.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/hgl/util/hash/Hash.h b/inc/hgl/util/hash/Hash.h index b60c155..a8d8ed3 100644 --- a/inc/hgl/util/hash/Hash.h +++ b/inc/hgl/util/hash/Hash.h @@ -151,7 +151,7 @@ namespace hgl inline Hash *CreateHash(HASH ha) { - ENUM_CLASS_RANGE_ERROR_RETURN_NULLPTR(ha) + RANGE_CHECK_RETURN_NULLPTR(ha) using CreateHashFunc=Hash *(*)(); @@ -204,7 +204,7 @@ namespace hgl */ inline bool CountHash(const void *data,int size,HASH ha,void *hash_code) { - ENUM_CLASS_RANGE_ERROR_RETURN_FALSE(ha) + RANGE_CHECK_RETURN_FALSE(ha) if(!data||size<=0||!hash_code)return(false); using CountHashFunc=bool (*)(const void *,int size,void *); @@ -271,7 +271,7 @@ namespace hgl */ inline bool CountHash(const void *data,int size,HASH ha,UTF8String &hash_str,bool litter=true) { - ENUM_CLASS_RANGE_ERROR_RETURN_FALSE(ha) + RANGE_CHECK_RETURN_FALSE(ha) if(!data||size<=0)return(false); using CountHashFunc=bool (*)(const void *,int size,UTF8String &,bool);