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:48 UTC

cvs commit: xml-xerces/c/src/xercesc/validators/schema SchemaGrammar.cpp

peiyongz    2004/03/03 15:03:48

  Modified:    c/src/xercesc/validators/schema SchemaGrammar.cpp
  Log:
  Using serialize() to save/load object created in ctor
  
  Revision  Changes    Path
  1.20      +14 -4     xml-xerces/c/src/xercesc/validators/schema/SchemaGrammar.cpp
  
  Index: SchemaGrammar.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/SchemaGrammar.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SchemaGrammar.cpp	29 Jan 2004 11:52:31 -0000	1.19
  +++ SchemaGrammar.cpp	3 Mar 2004 23:03:48 -0000	1.20
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.20  2004/03/03 23:03:48  peiyongz
  + * Using serialize() to save/load object created in ctor
  + *
    * Revision 1.19  2004/01/29 11:52:31  cargilld
    * Code cleanup changes to get rid of various compiler diagnostic messages.
    *
  @@ -436,7 +439,12 @@
   
           serEng.writeString(fTargetNamespace);
           serEng<<fValidated;
  -        serEng<<fGramDesc;
  +
  +        /***
  +         * serialize() method shall be used to store object
  +         * which has been created in ctor
  +         ***/
  +        fGramDesc->serialize(serEng);
   
       }
       else
  @@ -485,9 +493,11 @@
           serEng.readString(fTargetNamespace);
           serEng>>fValidated;
   
  -        XMLSchemaDescriptionImpl* 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