diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-18 20:12:03 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-18 22:46:49 +0000 |
commit | 389d8db4d90d427f886d06c3f7304ad973f0d39c (patch) | |
tree | 2a2106de98adac466b5ce8140cb96861f747f514 /cppuhelper | |
parent | c0aba6918a8c613d1e4d70ddf9c3be346e34cf4a (diff) |
add some spaces to make it easier to read
Change-Id: I2eb1c74bc0d91d3a12a66989b696fccbf1d2825e
Reviewed-on: https://gerrit.libreoffice.org/25117
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/weak.cxx | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx index d81a41b6cc0e..14334259ee8c 100644 --- a/cppuhelper/source/weak.cxx +++ b/cppuhelper/source/weak.cxx @@ -501,17 +501,20 @@ Reference< XInterface > WeakReferenceHelper::get() const { try { - Reference< XAdapter > xAdp; - { - MutexGuard guard(cppu::getWeakMutex()); - if( m_pImpl && m_pImpl->m_XWeakConnectionPoint.is() ) - xAdp = m_pImpl->m_XWeakConnectionPoint; - } + Reference< XAdapter > xAdp; + { + MutexGuard guard(cppu::getWeakMutex()); + if( m_pImpl && m_pImpl->m_XWeakConnectionPoint.is() ) + xAdp = m_pImpl->m_XWeakConnectionPoint; + } - if (xAdp.is()) - return xAdp->queryAdapted(); + if (xAdp.is()) + return xAdp->queryAdapted(); } - catch (RuntimeException &) { OSL_ASSERT( false ); } // assert here, but no unexpected() + catch (RuntimeException &) + { + OSL_ASSERT( false ); + } // assert here, but no unexpected() return Reference< XInterface >(); } |