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 2003/10/31 23:17:11 UTC

cvs commit: xml-xerces/c/src/xercesc/validators/datatype UnionDatatypeValidator.cpp

peiyongz    2003/10/31 14:17:11

  Modified:    c/src/xercesc/validators/datatype UnionDatatypeValidator.cpp
  Log:
  solve ownership
  
  Revision  Changes    Path
  1.15      +10 -4     xml-xerces/c/src/xercesc/validators/datatype/UnionDatatypeValidator.cpp
  
  Index: UnionDatatypeValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/datatype/UnionDatatypeValidator.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- UnionDatatypeValidator.cpp	17 Oct 2003 21:13:44 -0000	1.14
  +++ UnionDatatypeValidator.cpp	31 Oct 2003 22:17:11 -0000	1.15
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.15  2003/10/31 22:17:11  peiyongz
  + * solve ownership
  + *
    * Revision 1.14  2003/10/17 21:13:44  peiyongz
    * using XTemplateSerializer
    *
  @@ -487,9 +490,12 @@
           /***
            * Deserialize RefArrayVectorOf<XMLCh>
            * Deserialize RefVectorOf<DatatypeValidator>
  -         ***/    
  -        XTemplateSerializer::loadObject(&fEnumeration, 8, true, serEng);
  -        XTemplateSerializer::loadObject(&fMemberTypeValidators, 8, true, serEng);
  +         ***/
  +        bool owned = fEnumerationInherited ? true : false;
  +        XTemplateSerializer::loadObject(&fEnumeration, 8, owned, serEng);
  +
  +        owned = fMemberTypesInherited ? true : false;
  +        XTemplateSerializer::loadObject(&fMemberTypeValidators, 8, owned, serEng);
   
           fValidatedDatatype = DatatypeValidator::loadDV(serEng);
   
  
  
  

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