summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-06-09 13:00:54 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-06-09 13:01:26 -0400
commit1f0804bc007a31b020cac6a79bc85a9cec46475e (patch)
treedbd11244942858aa28610ef8a8b864e8c9db39ab /package
parentacf56987b03e03e7e407f383928f58cfb030d9d2 (diff)
No need to check for NULL before delete.
Change-Id: I8618fe6d3b27eb561137dc1e327e50a41f946494
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/xstorage.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index d57feb57ba8b..b21edb208ca9 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