summaryrefslogtreecommitdiff
path: root/ucb/source/core/ucbstore.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-03 16:00:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-03 21:54:58 +0200
commitfb58fc19c0c6e3c00f94161276a4f5dbe9db9096 (patch)
treeb5be5f4419eeb4b49a61f1ef61fc0e3909540a2b /ucb/source/core/ucbstore.cxx
parentc82dae439e8081fdcbfe68b2f2bc04190077a111 (diff)
loplugin:flatten in ucb
Change-Id: Ica7e5d3b5a5cec065f35f99d62b3b6604323601a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100009 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/core/ucbstore.cxx')
-rw-r--r--ucb/source/core/ucbstore.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 09b747879a8c..8720f3da10f6 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -568,18 +568,18 @@ void PropertySetRegistry::remove( PersistentPropertySet* pSet )
{
OUString key( pSet->getKey() );
- if ( !key.isEmpty() )
- {
- osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
+ if ( key.isEmpty() )
+ return;
- PropertySetMap_Impl& rSets = m_pImpl->m_aPropSets;
+ osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
- PropertySetMap_Impl::iterator it = rSets.find( key );
- if ( it != rSets.end() )
- {
- // Found.
- rSets.erase( it );
- }
+ PropertySetMap_Impl& rSets = m_pImpl->m_aPropSets;
+
+ PropertySetMap_Impl::iterator it = rSets.find( key );
+ if ( it != rSets.end() )
+ {
+ // Found.
+ rSets.erase( it );
}
}