increased default XML name pool size, added Document constructor taking name pool size as argument

This commit is contained in:
Guenter Obiltschnig
2016-10-07 10:43:34 +02:00
parent d9c3c5270a
commit 2817376436
3 changed files with 38 additions and 2 deletions

View File

@@ -57,6 +57,15 @@ Document::Document(NamePool* pNamePool):
}
Document::Document(unsigned long namePoolSize):
AbstractContainerNode(0),
_pDocumentType(0),
_pNamePool(new NamePool(namePoolSize)),
_eventSuspendLevel(0)
{
}
Document::Document(DocumentType* pDocumentType, NamePool* pNamePool):
AbstractContainerNode(0),
_pDocumentType(pDocumentType),
@@ -79,6 +88,20 @@ Document::Document(DocumentType* pDocumentType, NamePool* pNamePool):
}
Document::Document(DocumentType* pDocumentType, unsigned long namePoolSize):
AbstractContainerNode(0),
_pDocumentType(pDocumentType),
_pNamePool(new NamePool(namePoolSize)),
_eventSuspendLevel(0)
{
if (_pDocumentType)
{
_pDocumentType->duplicate();
_pDocumentType->setOwnerDocument(this);
}
}
Document::~Document()
{
if (_pDocumentType) _pDocumentType->release();