axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r344395 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp
Date Tue, 15 Nov 2005 17:08:40 GMT
Author: dicka
Date: Tue Nov 15 09:08:34 2005
New Revision: 344395

URL: http://svn.apache.org/viewcvs?rev=344395&view=rev
Log:
Minor modification, to avoid variable scoping bug in VC++ 6.

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

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp?rev=344395&r1=344394&r2=344395&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp
(original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp
Tue Nov 15 09:08:34 2005
@@ -37,6 +37,7 @@
 		{
 	try
 	{
+        int deleteIndex = 0;
 		sprintf(endpoint, "%s", url);
 		SimpleArrays ws(endpoint);
 
@@ -79,7 +80,7 @@
 			cout << "failed "<<endl;
 
 		 // Clear up input array        
-        for (int deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
+        for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete booleanInArray[deleteIndex];
         }
@@ -140,7 +141,7 @@
 		else
 			cout << "failed "<<endl;
 
-		for (int deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
+		for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete intInArray[deleteIndex];
         }
@@ -168,7 +169,7 @@
 			cout << "failed "<<endl;		
 
 		// Clear up input array        
-        for (int deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
+        for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete longInArray[deleteIndex];
         }
@@ -196,7 +197,7 @@
 			cout << "failed "<<endl;	
 
 		// Clear up input array        
-        for (int deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
+        for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete floatInArray[deleteIndex];
         }
@@ -225,7 +226,7 @@
 			cout << "failed "<<endl;	
 
 		// Clear up input array        
-        for (int deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
+        for (deleteIndex = 0 ; deleteIndex < ARRAYSIZE ; deleteIndex++ )
         {
             delete doubleInArray[deleteIndex];
         }



Mime
View raw message