peiyongz 2004/10/28 13:18:39
Modified: c/src/xercesc/validators/DTD XMLDTDDescriptionImpl.cpp
Log:
store/load fSystemId
Revision Changes Path
1.6 +12 -1
xml-xerces/c/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp
Index: XMLDTDDescriptionImpl.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/validators/DTD/XMLDTDDescriptionImpl.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XMLDTDDescriptionImpl.cpp 8 Sep 2004 13:56:50 -0000 1.5
+++ XMLDTDDescriptionImpl.cpp 28 Oct 2004 20:18:39 -0000 1.6
@@ -16,6 +16,9 @@
/*
* $Log$
+ * Revision 1.6 2004/10/28 20:18:39 peiyongz
+ * store/load fSystemId
+ *
* Revision 1.5 2004/09/08 13:56:50 peiyongz
* Apache License Version 2.0
*
@@ -116,10 +119,18 @@
if (serEng.isStoring())
{
+ serEng.writeString(fSystemId);
serEng.writeString(fRootName);
}
else
{
+ if (fSystemId)
+ {
+ XMLGrammarDescription::getMemoryManager()->deallocate((void*)fSystemId);
+ }
+
+ serEng.readString((XMLCh*&)fSystemId);
+
//the original root name which came from the ctor needs deallocated
if (fRootName)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]