Kaydet (Commit) 1f0804bc authored tarafından Kohei Yoshida's avatar Kohei Yoshida

No need to check for NULL before delete.

Change-Id: I8618fe6d3b27eb561137dc1e327e50a41f946494
üst acf56987
...@@ -176,11 +176,8 @@ SotElement_Impl::SotElement_Impl( const OUString& rName, bool bStor, bool bNew ) ...@@ -176,11 +176,8 @@ SotElement_Impl::SotElement_Impl( const OUString& rName, bool bStor, bool bNew )
SotElement_Impl::~SotElement_Impl() SotElement_Impl::~SotElement_Impl()
{ {
if ( m_pStorage ) delete m_pStorage;
delete m_pStorage; delete m_pStream;
if ( m_pStream )
delete m_pStream;
} }
// most of properties are holt by the storage but are not used // most of properties are holt by the storage but are not used
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment