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 2002/05/08 15:53:38 UTC

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

peiyongz    02/05/08 06:53:37

  Modified:    c/src/xercesc/validators/schema SchemaElementDecl.cpp
  Log:
  Bug#8898: SchemaElementDecl doesn't compile with Intel C++ for IA32,
                    patch from Curt Arnold
  
  Revision  Changes    Path
  1.4       +6 -5      xml-xerces/c/src/xercesc/validators/schema/SchemaElementDecl.cpp
  
  Index: SchemaElementDecl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/SchemaElementDecl.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SchemaElementDecl.cpp	21 Mar 2002 16:31:43 -0000	1.3
  +++ SchemaElementDecl.cpp	8 May 2002 13:53:37 -0000	1.4
  @@ -56,6 +56,10 @@
   
   /*
    * $Log: SchemaElementDecl.cpp,v $
  + * Revision 1.4  2002/05/08 13:53:37  peiyongz
  + * Bug#8898: SchemaElementDecl doesn't compile with Intel C++ for IA32,
  + *                   patch from Curt Arnold
  + *
    * Revision 1.3  2002/03/21 16:31:43  knoaman
    * Remove data/methods from SchemaElementDecl that are not used.
    *
  @@ -264,14 +268,12 @@
       if (fXsiComplexTypeInfo) {
           return fXsiComplexTypeInfo->getAttDefList();
       }
  -    else if (fComplexTypeInfo) {
  -        return fComplexTypeInfo->getAttDefList();
  -    }
  -    else {
  +    else if (!fComplexTypeInfo) 
  +	{
           ThrowXML(RuntimeException, XMLExcepts::DV_InvalidOperation);
       }
   
  -    return *(XMLAttDefList*)0 ;
  +	return fComplexTypeInfo->getAttDefList();
   }
   
   
  
  
  

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