From ee30255116d4b60b043deb8354c24ae78a763b67 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 9 May 2025 01:09:20 +0800 Subject: [PATCH] =?UTF-8?q?IDName.h=E4=B8=AD=E7=9A=84class=20id=E6=94=B9?= =?UTF-8?q?=E5=90=8D=E4=B8=BAclass=20hashcode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/type/IDName.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/hgl/type/IDName.h b/inc/hgl/type/IDName.h index 3966ce7..8be9358 100644 --- a/inc/hgl/type/IDName.h +++ b/inc/hgl/type/IDName.h @@ -45,12 +45,12 @@ namespace hgl public: - static const size_t GetClassID () ///<获取类ID + static const size_t GetClassHC () ///<获取类HashCode { static SelfClass self; - static size_t class_id=typeid(self).hash_code(); + static size_t class_hc=typeid(self).hash_code(); - return class_id; + return class_hc; } const int GetID ()const{return csv.id;} ///<获取名称ID