From ed3ce7bfeb2a22c17071fd02f61fa2c819a35c89 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 30 Apr 2024 20:41:27 +0100 Subject: WaE: C6011 Dereferencing NULL pointer warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6eb8e490e878349f2063910e0cbc901aa7a6d524 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166942 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- ucb/source/ucp/tdoc/tdoc_storage.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/ucp/tdoc/tdoc_storage.cxx b/ucb/source/ucp/tdoc/tdoc_storage.cxx index fe307a5bfa2d..858b05784dcc 100644 --- a/ucb/source/ucp/tdoc/tdoc_storage.cxx +++ b/ucb/source/ucp/tdoc/tdoc_storage.cxx @@ -319,19 +319,16 @@ StorageElementFactory::createStream( const OUString & rUri, new Stream( m_xContext, m_xDocsMgr, rUri, xParentStorage, xStream ) ); } - void StorageElementFactory::releaseElement( Storage const * pElement ) { - OSL_ASSERT( pElement ); + assert(pElement); osl::MutexGuard aGuard( m_aMutex ); if ( pElement->m_aContainerIt != m_aMap.end() ) m_aMap.erase( pElement->m_aContainerIt ); } - // Non-UNO interface - uno::Reference< embed::XStorage > StorageElementFactory::queryParentStorage( const OUString & rUri, StorageAccessMode eMode ) { -- cgit