axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whitl...@apache.org
Subject cvs commit: ws-axis/c/src/xml/xerces XercesHandler.cpp
Date Fri, 15 Oct 2004 10:29:38 GMT
whitlock    2004/10/15 03:29:38

  Modified:    c/src/xml/xerces XercesHandler.cpp
  Log:
  Make the engine pure C++. Replace malloc/free/strdup with new/delete.
  
  Revision  Changes    Path
  1.8       +2 -2      ws-axis/c/src/xml/xerces/XercesHandler.cpp
  
  Index: XercesHandler.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/xml/xerces/XercesHandler.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XercesHandler.cpp	13 Oct 2004 04:51:54 -0000	1.7
  +++ XercesHandler.cpp	15 Oct 2004 10:29:38 -0000	1.8
  @@ -31,8 +31,8 @@
   {
       m_nStatus = AXIS_SUCCESS;
   	m_pCurrElement = 0;
  -    m_pNextElement = (AnyElement*)malloc(sizeof (AnyElement));
  -	m_pPrefixMappingElement = (AnyElement*)malloc(sizeof (AnyElement));
  +    m_pNextElement = new AnyElement;
  +	m_pPrefixMappingElement = new AnyElement;
       m_bEndElementFollows = false;
       m_pNextElement->m_pchNameOrValue = 0;
       m_pNextElement->m_pchNamespace = 0;
  
  
  

Mime
View raw message