[Libreoffice-commits] core.git: package/source

Kohei Yoshida kohei.yoshida at collabora.com
Mon Jun 9 10:01:39 PDT 2014


 package/source/xstor/xstorage.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 1f0804bc007a31b020cac6a79bc85a9cec46475e
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Mon Jun 9 13:00:54 2014 -0400

    No need to check for NULL before delete.
    
    Change-Id: I8618fe6d3b27eb561137dc1e327e50a41f946494

diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index d57feb5..b21edb2 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -176,11 +176,8 @@ SotElement_Impl::SotElement_Impl( const OUString& rName, bool bStor, bool bNew )
 
 SotElement_Impl::~SotElement_Impl()
 {
-    if ( m_pStorage )
-        delete m_pStorage;
-
-    if ( m_pStream )
-        delete m_pStream;
+    delete m_pStorage;
+    delete m_pStream;
 }
 
 // most of properties are holt by the storage but are not used


More information about the Libreoffice-commits mailing list