axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r374370 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Date Thu, 02 Feb 2006 12:13:47 GMT
Author: prestonf
Date: Thu Feb  2 04:13:42 2006
New Revision: 374370

URL: http://svn.apache.org/viewcvs?rev=374370&view=rev
Log:
Added type cast for 'i' in line 'for (int ii=0; ii<i; ++ii)' to 'for( int ii = 0; ii <
(int) i; ++ii)'.  This will remove the warning message that accompanies every usage of this
line of code.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java?rev=374370&r1=374369&r2=374370&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Thu Feb  2 04:13:42 2006
@@ -763,25 +763,25 @@
 
 	private void writeCreateGlobalMethod() throws IOException 
     {
-		writer.write("void* Axis_Create_" + classname + "(" + classname
-				+ "* pObj, bool bArray = false, int nSize=0)\n{\n");
-		writer.write("\tif (bArray && (nSize > 0))\n\t{\n\t\tif (pObj)\n\t\t{\n");
-		writer.write("\t\t\t" + classname + "* pNew = new " + classname
-				+ "[nSize];\n");
+		writer.write("void * Axis_Create_" + classname + "( " + classname
+				+ " * pObj, bool bArray = false, int nSize = 0)\n{\n");
+		writer.write("\tif( bArray && (nSize > 0))\n\t{\n\t\tif( pObj)\n\t\t{\n");
+		writer.write("\t\t\t" + classname + " * pNew = new " + classname
+				+ "[nSize];\n\n");
 		
-        writer.write("\t\t\tsize_t i = nSize/2;\n");
-        writer.write("\t\t\tfor (int ii=0; ii<i; ++ii)\n");
+        writer.write("\t\t\tsize_t i = nSize / 2;\n\n");
+        writer.write("\t\t\tfor( int ii = 0; ii < (int) i; ++ii)\n");
         writer.write("\t\t\t{\n");
         writer.write("\t\t\t\tpNew[ii] = pObj[ii];\n");
         writer.write("\t\t\t\tpObj[ii].reset();\n");
-        writer.write("\t\t\t}\n");
+        writer.write("\t\t\t}\n\n");
 
-        writer.write("\t\t\tdelete [] pObj;\n");
+        writer.write("\t\t\tdelete [] pObj;\n\n");
         
 		writer.write("\t\t\treturn pNew;\n\t\t}\n\t\telse\n\t\t{\n");
 		writer.write("\t\t\treturn new " + classname
 						+ "[nSize];\n\t\t}\n\t}\n");
-		writer.write("\telse\n\t\treturn new " + classname + ";\n}\n\n");
+		writer.write("\telse\n\t{\n\t\treturn new " + classname + ";\n\t}\n}\n\n");
 	}
 
 	private void writeDeleteGlobalMethod() throws IOException 



Mime
View raw message