You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ar...@locus.apache.org on 2000/09/13 01:56:27 UTC
cvs commit: xml-xerces/c/src/parsers DOMParser.cpp
aruna1 00/09/12 16:56:25
Modified: c/src/parsers DOMParser.cpp
Log:
Fixed the entry of entity nodes in NamedNodeMap twice.
Revision Changes Path
1.31 +3 -9 xml-xerces/c/src/parsers/DOMParser.cpp
Index: DOMParser.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/parsers/DOMParser.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- DOMParser.cpp 2000/09/12 23:05:30 1.30
+++ DOMParser.cpp 2000/09/12 23:56:24 1.31
@@ -59,7 +59,7 @@
* handler with the scanner. In these handler methods, appropriate DOM nodes
* are created and added to the DOM tree.
*
-* $Id: DOMParser.cpp,v 1.30 2000/09/12 23:05:30 aruna1 Exp $
+* $Id: DOMParser.cpp,v 1.31 2000/09/12 23:56:24 aruna1 Exp $
*
*/
@@ -87,6 +87,7 @@
#include <dom/NamedNodeMapImpl.hpp>
#include <dom/NodeIDMap.hpp>
+
#include <validators/DTD/ContentSpecNode.hpp>
#include <validators/DTD/DTDAttDefList.hpp>
@@ -680,14 +681,7 @@
// the ref nodes are created
EntityImpl* entity = (EntityImpl*)fDocumentType->entities->getNamedItem(entName);
entity->setEntityRef((EntityReferenceImpl*)er.fImpl);
- bool owned = entity->isOwned();
- if (owned)
- entity->isOwned(false);
-
- fDocumentType->entities->setNamedItem(entity);
-
- if (entity->isOwned != owned)
- entity->isOwned(owned);
+
}
}