summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-30 09:53:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-10-30 09:53:58 +0000
commitdd59e89b8fc4d9f59df3ff64b992178f2a2674da (patch)
treea18d1cf08e541327b3c2e3adfb7c96e4915ea517 /package
parent6175ccdad147cd6ef7143c03e30c0f2835d9a15d (diff)
OSL_ENSURE->assert when follow by deref of tested pointer
Change-Id: Ib703cb24619228c081c156c4ed52bf7b878fbedd
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/xstorage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index cb1e4f4bafc2..0b1193f45327 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -5990,7 +5990,7 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL OStorage::openStreamEle
// the transacted version of the stream should be opened
SotElement_Impl *pElement = OpenStreamElement_Impl( aStreamPath, nOpenMode, false );
- OSL_ENSURE( pElement && pElement->m_pStream, "In case element can not be created an exception must be thrown!" );
+ assert(pElement && pElement->m_pStream && "In case element can not be created an exception must be thrown!");
xResult = uno::Reference< embed::XExtendedStorageStream >(
pElement->m_pStream->GetStream( nOpenMode, true ),