mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
increased default XML name pool size, added Document constructor taking name pool size as argument
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user