diff --git a/inc/hgl/util/xml/XMLParse.h b/inc/hgl/util/xml/XMLParse.h index 8e84f79..8720efa 100644 --- a/inc/hgl/util/xml/XMLParse.h +++ b/inc/hgl/util/xml/XMLParse.h @@ -125,6 +125,8 @@ namespace hgl } };//class XMLElementParseKV:public XMLElementParse + constexpr int XML_PARSE_BUFFER_SIZE=HGL_SIZE_1KB*128; /// */ @@ -145,7 +147,7 @@ namespace hgl public: - XMLParse(XMLElementParse *,const int size=HGL_SIZE_1KB*128); + XMLParse(XMLElementParse *,const int size=XML_PARSE_BUFFER_SIZE); virtual ~XMLParse(); virtual void Start(const char *charset="utf-8"); diff --git a/src/xml/XMLParseClass.cpp b/src/xml/XMLParseClass.cpp index 88e100a..e9ef54c 100644 --- a/src/xml/XMLParseClass.cpp +++ b/src/xml/XMLParseClass.cpp @@ -57,7 +57,7 @@ namespace hgl xml=nullptr; if(size<=0) - buffer_size=HGL_SIZE_1KB*128; + buffer_size=XML_PARSE_BUFFER_SIZE; else buffer_size=size;