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/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp BeanParamWriter.java
Date Tue, 12 Oct 2004 10:12:55 GMT
whitlock    2004/10/12 03:12:55

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp
                        BeanParamWriter.java
  Log:
  Initialise fields in the constructor
  
  Revision  Changes    Path
  1.26      +3 -0      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
  
  Index: BeanParamWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- BeanParamWriter.java	12 Oct 2004 08:21:27 -0000	1.25
  +++ BeanParamWriter.java	12 Oct 2004 10:12:55 -0000	1.26
  @@ -236,6 +236,9 @@
   			}
   			else if (!attribs[i].isSimpleType()){
   				writer.write("\t"+attribs[i].getParamNameAsMember()+"=0;\n");
  +			} else {
  +				/* Needed for shared libraries */
  +			      writer.write("\tmemset( &" + attribs[i].getParamNameAsMember() + ", 0, sizeof(
" + attribs[i].getTypeName() + "));\n");
   			}
   		}			
   		writer.write("}\n");
  
  
  

Mime
View raw message