Skip to content
Snippets Groups Projects
Commit 3552d571 authored by PeiYong Zhang's avatar PeiYong Zhang
Browse files

rewind previous change

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175961 13f79535-47bb-0310-9956-ffa450edef68
parent 2a807222
No related branches found
No related tags found
No related merge requests found
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
/* /*
* $Log$ * $Log$
* Revision 1.18 2004/07/21 14:54:04 peiyongz * Revision 1.19 2004/07/21 15:07:13 peiyongz
* using the supplied memory manager * rewind previous change
* *
* Revision 1.17 2004/03/03 23:03:28 peiyongz * Revision 1.17 2004/03/03 23:03:28 peiyongz
* Using serialize() to save/load object created in ctor * Using serialize() to save/load object created in ctor
...@@ -304,7 +304,7 @@ void DTDGrammar::resetEntityDeclPool() { ...@@ -304,7 +304,7 @@ void DTDGrammar::resetEntityDeclPool() {
// If we got here first, then register it and set the registered flag // If we got here first, then register it and set the registered flag
if (!sEntityPoolMutexRegistered) if (!sEntityPoolMutexRegistered)
{ {
fDefaultEntities = new (fMemoryManager) NameIdPool<DTDEntityDecl>(11, 12); fDefaultEntities = new NameIdPool<DTDEntityDecl>(11, 12);
// //
// Add the default entity entries for the character refs that must // Add the default entity entries for the character refs that must
...@@ -316,11 +316,11 @@ void DTDGrammar::resetEntityDeclPool() { ...@@ -316,11 +316,11 @@ void DTDGrammar::resetEntityDeclPool() {
// to be used in places whether other non-numeric general entities // to be used in places whether other non-numeric general entities
// cannot. // cannot.
// //
fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgAmp, chAmpersand, true, true)); fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgAmp, chAmpersand, true, true));
fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgLT, chOpenAngle, true, true)); fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgLT, chOpenAngle, true, true));
fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgGT, chCloseAngle, true, true)); fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgGT, chCloseAngle, true, true));
fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgQuot, chDoubleQuote, true, true)); fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgQuot, chDoubleQuote, true, true));
fDefaultEntities->put(new (fMemoryManager) DTDEntityDecl(XMLUni::fgApos, chSingleQuote, true, true)); fDefaultEntities->put(new DTDEntityDecl(XMLUni::fgApos, chSingleQuote, true, true));
// register cleanup method // register cleanup method
entityPoolRegistryCleanup.registerCleanup(DTDGrammar::reinitDfltEntities); entityPoolRegistryCleanup.registerCleanup(DTDGrammar::reinitDfltEntities);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment