use macro instead magic number.
This commit is contained in:
parent
2002532b63
commit
2c06e4ae35
@ -125,6 +125,8 @@ namespace hgl
|
|||||||
}
|
}
|
||||||
};//class XMLElementParseKV:public XMLElementParse
|
};//class XMLElementParseKV:public XMLElementParse
|
||||||
|
|
||||||
|
constexpr int XML_PARSE_BUFFER_SIZE=HGL_SIZE_1KB*128; ///<XML解析缓冲区大小
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XML解析器<br>
|
* XML解析器<br>
|
||||||
*/
|
*/
|
||||||
@ -145,7 +147,7 @@ namespace hgl
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
XMLParse(XMLElementParse *,const int size=HGL_SIZE_1KB*128);
|
XMLParse(XMLElementParse *,const int size=XML_PARSE_BUFFER_SIZE);
|
||||||
virtual ~XMLParse();
|
virtual ~XMLParse();
|
||||||
|
|
||||||
virtual void Start(const char *charset="utf-8");
|
virtual void Start(const char *charset="utf-8");
|
||||||
|
@ -57,7 +57,7 @@ namespace hgl
|
|||||||
xml=nullptr;
|
xml=nullptr;
|
||||||
|
|
||||||
if(size<=0)
|
if(size<=0)
|
||||||
buffer_size=HGL_SIZE_1KB*128;
|
buffer_size=XML_PARSE_BUFFER_SIZE;
|
||||||
else
|
else
|
||||||
buffer_size=size;
|
buffer_size=size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user