add optional name pool size argument to DOMParser constructor

This commit is contained in:
Guenter Obiltschnig
2016-10-07 10:53:14 +02:00
parent 2817376436
commit a53464e784
2 changed files with 13 additions and 1 deletions

View File

@@ -39,6 +39,15 @@ DOMParser::DOMParser(NamePool* pNamePool):
}
DOMParser::DOMParser(unsigned long namePoolSize):
_pNamePool(new NamePool(namePoolSize)),
_filterWhitespace(false)
{
_saxParser.setFeature(XMLReader::FEATURE_NAMESPACES, true);
_saxParser.setFeature(XMLReader::FEATURE_NAMESPACE_PREFIXES, true);
}
DOMParser::~DOMParser()
{
if (_pNamePool) _pNamePool->release();