diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index b813882b33af..4782ba3c96a2 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -473,7 +473,6 @@ BaseContent::addProperty( void SAL_CALL BaseContent::removeProperty( const OUString& Name ) { - if( m_nState & Deleted ) throw beans::UnknownPropertyException( Name ); @@ -894,13 +893,9 @@ BaseContent::deleteContent( sal_Int32 nMyCommandIdentifier ) return; if( m_pMyShell->remove( nMyCommandIdentifier,m_aUncPath ) ) - { - std::unique_lock aGuard( m_aMutex ); m_nState |= Deleted; - } } - void BaseContent::transfer( sal_Int32 nMyCommandIdentifier, const TransferInfo& aTransferInfo ) @@ -1072,7 +1067,6 @@ void BaseContent::insert( sal_Int32 nMyCommandIdentifier, m_pMyShell->registerNotifier( m_aUncPath,this ); m_pMyShell->insertDefaultProperties( m_aUncPath ); - std::unique_lock aGuard( m_aMutex ); m_nState = FullFeatured; } @@ -1087,10 +1081,9 @@ void BaseContent::endTask( sal_Int32 CommandId ) std::optional BaseContent::cDEL() { - std::unique_lock aGuard( m_aMutex ); - m_nState |= Deleted; + std::unique_lock aGuard( m_aMutex ); if( m_aContentEventListeners.getLength(aGuard) == 0 ) return {};