From ff819d8a60753269343a3f87777ee03ae5071cb4 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Mon, 14 Aug 2023 20:02:15 +0800 Subject: [PATCH] updated codes --- inc/hgl/util/plist/PAttrib.h | 2 +- inc/hgl/util/xml/ElementParseCreater.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/hgl/util/plist/PAttrib.h b/inc/hgl/util/plist/PAttrib.h index db06498..91444f4 100644 --- a/inc/hgl/util/plist/PAttrib.h +++ b/inc/hgl/util/plist/PAttrib.h @@ -292,7 +292,7 @@ namespace hgl void Clear(){pa_map.Clear();} void ClearData(){pa_map.ClearData();} - void Enum(void (*enum_func)(const String &key,PAttribBase *value)) + void Enum(void (*enum_func)(const String &key,PAttribBase * &value)) { pa_map.Enum(enum_func); }; diff --git a/inc/hgl/util/xml/ElementParseCreater.h b/inc/hgl/util/xml/ElementParseCreater.h index 21c66a9..7c6b1b4 100644 --- a/inc/hgl/util/xml/ElementParseCreater.h +++ b/inc/hgl/util/xml/ElementParseCreater.h @@ -112,7 +112,7 @@ namespace hgl virtual bool Init () override { - attrs_list.ClearData(); + attrs_list.Clear(); return(true); }