ws-axis-cvs 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/soap HeaderBlock.cpp
Date Mon, 07 Mar 2005 16:12:59 GMT
whitlock    2005/03/07 08:12:59

  Modified:    c/src/soap HeaderBlock.cpp
  Log:
  AXISCPP-516 Allow the prefix to be optional on HeaderBlock::createAttribute. No attribute
means it is in the default namespace.
  
  Revision  Changes    Path
  1.62      +4 -3      ws-axis/c/src/soap/HeaderBlock.cpp
  
  Index: HeaderBlock.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- HeaderBlock.cpp	4 Mar 2005 17:03:11 -0000	1.61
  +++ HeaderBlock.cpp	7 Mar 2005 16:12:58 -0000	1.62
  @@ -615,13 +615,14 @@
                                            const AxisChar * pValue)
   {
   // Check that the contents of the passed parameters are valid.
  -	if( pLocalName == NULL || pPrefix == NULL)
  +	if( NULL == pLocalName || 0 == strlen( pLocalName))
   	{
   		return NULL;
   	}
  -	else if( strlen( pLocalName) == 0 || strlen( pPrefix) == 0)
  +
  +	if( !pPrefix)
   	{
  -		return NULL;
  +		pPrefix = "";
   	}
   
   	if( !pURI)
  
  
  

Mime
View raw message