From 2106238606d659f805d8664175ff69315ed4d961 Mon Sep 17 00:00:00 2001
From: PeiYong Zhang <peiyongz@apache.org>
Date: Wed, 21 Jul 2004 14:54:04 +0000
Subject: [PATCH] using the supplied memory manager

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175959 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/validators/DTD/DTDGrammar.cpp | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/xercesc/validators/DTD/DTDGrammar.cpp b/src/xercesc/validators/DTD/DTDGrammar.cpp
index 67f815356..cd4e2860b 100644
--- a/src/xercesc/validators/DTD/DTDGrammar.cpp
+++ b/src/xercesc/validators/DTD/DTDGrammar.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.18  2004/07/21 14:54:04  peiyongz
+ * using the supplied memory manager
+ *
  * Revision 1.17  2004/03/03 23:03:28  peiyongz
  * Using serialize() to save/load object created in ctor
  *
@@ -301,7 +304,7 @@ void DTDGrammar::resetEntityDeclPool() {
             // If we got here first, then register it and set the registered flag
             if (!sEntityPoolMutexRegistered)
             {
-                fDefaultEntities = new NameIdPool<DTDEntityDecl>(11, 12);
+                fDefaultEntities = new (fMemoryManager) NameIdPool<DTDEntityDecl>(11, 12);
 
                 //
                 // Add the default entity entries for the character refs that must
@@ -313,11 +316,11 @@ void DTDGrammar::resetEntityDeclPool() {
                 // to be used in places whether other non-numeric general entities
                 // cannot.
                 //
-                fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgAmp, chAmpersand, true, true));
-                fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgLT, chOpenAngle, true, true));
-                fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgGT, chCloseAngle, true, true));
-                fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgQuot, chDoubleQuote, true, true));
-                fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgApos, chSingleQuote, true, true));
+                fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgAmp, chAmpersand, true, true));
+                fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgLT, chOpenAngle, true, true));
+                fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgGT, chCloseAngle, true, true));
+                fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgQuot, chDoubleQuote, true, true));
+                fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgApos, chSingleQuote, true, true));
 
                 // register cleanup method
                 entityPoolRegistryCleanup.registerCleanup(DTDGrammar::reinitDfltEntities);
-- 
GitLab