You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2006/02/14 16:44:02 UTC

svn commit: r377748 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp

Author: dicka
Date: Tue Feb 14 07:44:00 2006
New Revision: 377748

URL: http://svn.apache.org/viewcvs?rev=377748&view=rev
Log:
Minor modification to avoid variable scoping issue when using MS VC++ 6.0

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp?rev=377748&r1=377747&r2=377748&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp Tue Feb 14 07:44:00 2006
@@ -136,9 +136,10 @@
 			xsd__int_Array	arrint;
 			xsd__int **		iToSend = new xsd__int*[ARRAYSIZE];
 
-			for( int x = 0; x < ARRAYSIZE; x++)
+            int count;
+			for( count = 0; count < ARRAYSIZE; count++)
 			{
-				iToSend[x] = new xsd__int(x);
+				iToSend[count] = new xsd__int(count);
 			}
 
 			arrint.set( iToSend, ARRAYSIZE);
@@ -185,9 +186,9 @@
 			xsd__float_Array	arrfloat;
 			xsd__float **		fToSend = new xsd__float*[ARRAYSIZE];
 
-			for( int x = 0; x < ARRAYSIZE; x++)
+			for( count = 0; count < ARRAYSIZE; count++)
 			{
-				fToSend[x] = new xsd__float( (xsd__float) 1.1111 * (xsd__float) x);
+				fToSend[count] = new xsd__float( (xsd__float) 1.1111 * (xsd__float) count);
 			}
 
 			arrfloat.set( fToSend, ARRAYSIZE);
@@ -241,18 +242,18 @@
 			SOAPStruct			ssToSend[ARRAYSIZE];
 			xsd__float			myFloat;
 
-			for( int x = 0; x < ARRAYSIZE; x++)
+			for( count = 0; count < ARRAYSIZE; count++)
 			{
-				myFloat = (xsd__float) (1.1111 * x);
+				myFloat = (xsd__float) (1.1111 * count);
 
-				ssToSend[x].setvarFloat( &myFloat);
-				ssToSend[x].setvarInt( &x);
+				ssToSend[count].setvarFloat( &myFloat);
+				ssToSend[count].setvarInt( &count);
 
-				sprintf( buffer1, "varString of %dth element of SOAPStruct array", x);
+				sprintf( buffer1, "varString of %dth element of SOAPStruct array", count);
 
-				ssToSend[x].setvarString( buffer1);
+				ssToSend[count].setvarString( buffer1);
 
-				m_Array4[x] = &ssToSend[x];
+				m_Array4[count] = &ssToSend[count];
 			}
 
 			arrstct.set( m_Array4, ARRAYSIZE);