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 wh...@apache.org on 2005/07/12 15:57:36 UTC
cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp ManyTypeRefRootClient.cpp
whitlock 2005/07/12 06:57:36
Modified: c/tests/auto_build/testcases/client/cpp
ManyTypeRefRootClient.cpp
Log:
Update testcases to new storage pointed at by complex types so that the complex types' destructor can delete the storage.
Revision Changes Path
1.8 +2 -1 ws-axis/c/tests/auto_build/testcases/client/cpp/ManyTypeRefRootClient.cpp
Index: ManyTypeRefRootClient.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/ManyTypeRefRootClient.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ManyTypeRefRootClient.cpp 23 Mar 2005 15:45:06 -0000 1.7
+++ ManyTypeRefRootClient.cpp 12 Jul 2005 13:57:35 -0000 1.8
@@ -28,6 +28,7 @@
void shift_args(int i, int *argc, char *argv[]);
void setLogOptions(const char *output_filename);
+#define NEWCOPY(ptr,str) {ptr=new char[strlen(str)+1]; strcpy(ptr,str);}
int main(int argc, char* argv[])
{
@@ -60,7 +61,7 @@
for ( i = 0; i < 10; i++ ) {
current = new Type1 ();
- current->kind = "Test type";
+ NEWCOPY(current->kind, "Test type");
current->index = i;
types[i] = *current;
}