From c65a3a088f5c94f73625d736b66af1c097abad3a Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 16 Sep 2020 22:03:08 +0800 Subject: [PATCH] fix ElementAttribute bug that it don't clear attrs_list. --- inc/hgl/util/xml/ElementParseCreater.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/hgl/util/xml/ElementParseCreater.h b/inc/hgl/util/xml/ElementParseCreater.h index 65e5d7a..84c7250 100644 --- a/inc/hgl/util/xml/ElementParseCreater.h +++ b/inc/hgl/util/xml/ElementParseCreater.h @@ -65,6 +65,12 @@ namespace hgl } public: + + virtual bool Init () override + { + attrs_list.ClearData(); + return(true); + } virtual void Attr (const u8char *flag,const u8char *info) override///<节点属性 {