use macro instead magic number.

This commit is contained in:
2020-08-20 21:56:02 +08:00
parent 2002532b63
commit 2c06e4ae35
2 changed files with 4 additions and 2 deletions

View File

@@ -125,6 +125,8 @@ namespace hgl
}
};//class XMLElementParseKV:public XMLElementParse
constexpr int XML_PARSE_BUFFER_SIZE=HGL_SIZE_1KB*128; ///<XML解析缓冲区大小
/**
* XML解析器<br>
*/
@@ -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");