You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2004/03/04 00:03:28 UTC

cvs commit: xml-xerces/c/src/xercesc/validators/DTD DTDGrammar.cpp

peiyongz    2004/03/03 15:03:28

  Modified:    c/src/xercesc/validators/DTD DTDGrammar.cpp
  Log:
  Using serialize() to save/load object created in ctor
  
  Revision  Changes    Path
  1.17      +13 -5     xml-xerces/c/src/xercesc/validators/DTD/DTDGrammar.cpp
  
  Index: DTDGrammar.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/DTD/DTDGrammar.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- DTDGrammar.cpp	29 Jan 2004 11:52:30 -0000	1.16
  +++ DTDGrammar.cpp	3 Mar 2004 23:03:28 -0000	1.17
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.17  2004/03/03 23:03:28  peiyongz
  + * Using serialize() to save/load object created in ctor
  + *
    * Revision 1.16  2004/01/29 11:52:30  cargilld
    * Code cleanup changes to get rid of various compiler diagnostic messages.
    *
  @@ -369,8 +372,12 @@
   
           serEng<<fRootElemId;
           serEng<<fValidated;
  -        serEng<<fGramDesc;
   
  +        /***
  +         * serialize() method shall be used to store object
  +         * which has been created in ctor
  +         ***/
  +        fGramDesc->serialize(serEng);
       }
       else
       {
  @@ -389,10 +396,11 @@
           serEng>>fRootElemId;
           serEng>>fValidated;
   
  -        XMLDTDDescriptionImpl* gramDesc;
  -        serEng>>gramDesc;
  -        fGramDesc = gramDesc;
  -
  +        /***
  +         * serialize() method shall be used to load object
  +         * which has been created in ctor
  +         ***/
  +        fGramDesc->serialize(serEng);
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org