axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r331934 - /webservices/axis2/trunk/c/modules/util/src/qname.c
Date Wed, 09 Nov 2005 03:20:15 GMT
Author: samisa
Date: Tue Nov  8 19:20:11 2005
New Revision: 331934

URL: http://svn.apache.org/viewcvs?rev=331934&view=rev
Log:
Updated the use of axis2_strdup to AXIS2_STRDUP

Modified:
    webservices/axis2/trunk/c/modules/util/src/qname.c

Modified: webservices/axis2/trunk/c/modules/util/src/qname.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/src/qname.c?rev=331934&r1=331933&r2=331934&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/src/qname.c (original)
+++ webservices/axis2/trunk/c/modules/util/src/qname.c Tue Nov  8 19:20:11 2005
@@ -117,7 +117,7 @@
     }
     /* set properties */
 
-    qn->localpart = (axis2_char_t *)axis2_strdup (localpart);
+    qn->localpart = (axis2_char_t *)AXIS2_STRDUP (localpart, env);
     if (!(qn->localpart))
     {
         AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, AXIS2_ERROR_NO_MEMORY);
@@ -128,11 +128,11 @@
 
     if (!prefix)
     {
-        qn->prefix = (axis2_char_t*)axis2_strdup("");
+        qn->prefix = (axis2_char_t*)AXIS2_STRDUP("", env);
     }
     else
     {
-        qn->prefix =(axis2_char_t*)axis2_strdup (prefix);
+        qn->prefix =(axis2_char_t*)AXIS2_STRDUP (prefix, env);
     }
     if (!(qn->prefix))
     {
@@ -144,11 +144,11 @@
     }
     if (!namespace_uri)
     {
-        qn->namespace_uri = (axis2_char_t*)axis2_strdup ("");
+        qn->namespace_uri = (axis2_char_t*)AXIS2_STRDUP ("", env);
     }
     else
     {
-        qn->namespace_uri = (axis2_char_t*)axis2_strdup (namespace_uri);
+        qn->namespace_uri = (axis2_char_t*)AXIS2_STRDUP (namespace_uri, env);
     }
     if (!(qn->namespace_uri))
     {
@@ -316,7 +316,7 @@
         AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }
-    AXIS2_INTF_TO_IMPL(qname)->namespace_uri = (axis2_char_t*)axis2_strdup(uri);
+    AXIS2_INTF_TO_IMPL(qname)->namespace_uri = (axis2_char_t*)AXIS2_STRDUP(uri, env);
     return AXIS2_SUCCESS;
 }
 
@@ -333,7 +333,7 @@
         AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }
-    AXIS2_INTF_TO_IMPL(qname)->prefix = (axis2_char_t*)axis2_strdup(prefix);
+    AXIS2_INTF_TO_IMPL(qname)->prefix = (axis2_char_t*)AXIS2_STRDUP(prefix, env);
     return AXIS2_SUCCESS;
 }
 
@@ -349,6 +349,6 @@
         AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }
-    AXIS2_INTF_TO_IMPL(qname)->localpart = (axis2_char_t*)axis2_strdup(localpart);
+    AXIS2_INTF_TO_IMPL(qname)->localpart = (axis2_char_t*)AXIS2_STRDUP(localpart, env);
     return AXIS2_SUCCESS;
 }



Mime
View raw message