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 na...@apache.org on 2006/11/10 22:29:42 UTC

svn commit: r473506 - /webservices/axis/trunk/c/include/axis/AxisException.hpp

Author: nadiramra
Date: Fri Nov 10 13:29:41 2006
New Revision: 473506

URL: http://svn.apache.org/viewvc?view=rev&rev=473506
Log:
Cleanup - align code, remove tabs, remove if-checks on deletes since 
delete allows null to be deleted. 

Modified:
    webservices/axis/trunk/c/include/axis/AxisException.hpp

Modified: webservices/axis/trunk/c/include/axis/AxisException.hpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/include/axis/AxisException.hpp?view=diff&rev=473506&r1=473505&r2=473506
==============================================================================
--- webservices/axis/trunk/c/include/axis/AxisException.hpp (original)
+++ webservices/axis/trunk/c/include/axis/AxisException.hpp Fri Nov 10 13:29:41 2006
@@ -457,8 +457,7 @@
     /** Destructor */
     virtual ~AxisException() throw()
     {
-        if (m_sMessage)
-            delete [] m_sMessage;
+        delete [] m_sMessage;
     };
 
     /**
@@ -500,11 +499,8 @@
       */
     void setMessage(const char* psMessage)
     {
-        if (m_sMessage)
-        {
-            delete [] m_sMessage;
-            m_sMessage = NULL;
-        }
+        delete [] m_sMessage;
+        m_sMessage = NULL;
 
         if (psMessage)
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org