axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapHeader.cpp
Date Mon, 24 Jan 2005 08:59:44 GMT
roshan      2005/01/24 00:59:44

  Modified:    c/src/soap SoapHeader.cpp
  Log:
  removed the unnecessory cheking of NULL of the object m_itHeaderBlocks, Thanks for Nadir
for pointing out this
  
  Revision  Changes    Path
  1.34      +5 -10     ws-axis/c/src/soap/SoapHeader.cpp
  
  Index: SoapHeader.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapHeader.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- SoapHeader.cpp	13 Jan 2005 14:05:42 -0000	1.33
  +++ SoapHeader.cpp	24 Jan 2005 08:59:44 -0000	1.34
  @@ -41,8 +41,7 @@
   extern SoapEnvVersionsStruct gs_SoapEnvVersionsStruct[VERSION_LAST];
   
   SoapHeader::SoapHeader()
  -{
  -	m_itHeaderBlocks = NULL;
  +{	
   }
   
   SoapHeader::~SoapHeader()
  @@ -270,15 +269,11 @@
   
   IHeaderBlock* SoapHeader::getCurrentHeaderBlock()
   {
  -	if (m_itHeaderBlocks == NULL) {
  -		return NULL;
  -	} else {
  -		IHeaderBlock* tmpIHeaderBlock=NULL;
  -		if (m_itHeaderBlocks != m_headerBlocks.end())
  -			tmpIHeaderBlock = *m_itHeaderBlocks;
  +	IHeaderBlock* tmpIHeaderBlock=NULL;
  +	if (m_itHeaderBlocks != m_headerBlocks.end())
  +		tmpIHeaderBlock = *m_itHeaderBlocks;
   
  -		return tmpIHeaderBlock;
  -	}
  +	return tmpIHeaderBlock;
   }
   
   AXIS_CPP_NAMESPACE_END
  
  
  

Mime
View raw message