Kaydet (Commit) 389d8db4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

add some spaces to make it easier to read

Change-Id: I2eb1c74bc0d91d3a12a66989b696fccbf1d2825e
Reviewed-on: https://gerrit.libreoffice.org/25117Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst c0aba691
...@@ -501,17 +501,20 @@ Reference< XInterface > WeakReferenceHelper::get() const ...@@ -501,17 +501,20 @@ Reference< XInterface > WeakReferenceHelper::get() const
{ {
try try
{ {
Reference< XAdapter > xAdp; Reference< XAdapter > xAdp;
{ {
MutexGuard guard(cppu::getWeakMutex()); MutexGuard guard(cppu::getWeakMutex());
if( m_pImpl && m_pImpl->m_XWeakConnectionPoint.is() ) if( m_pImpl && m_pImpl->m_XWeakConnectionPoint.is() )
xAdp = m_pImpl->m_XWeakConnectionPoint; xAdp = m_pImpl->m_XWeakConnectionPoint;
} }
if (xAdp.is()) if (xAdp.is())
return xAdp->queryAdapted(); 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 >(); return Reference< XInterface >();
} }
......
...@@ -56,12 +56,14 @@ public: ...@@ -56,12 +56,14 @@ public:
@param rWeakRef another weak ref @param rWeakRef another weak ref
*/ */
WeakReferenceHelper( const WeakReferenceHelper & rWeakRef ); WeakReferenceHelper( const WeakReferenceHelper & rWeakRef );
/** Initialize this reference with the hard interface reference xInt. If the implementation /** Initialize this reference with the hard interface reference xInt. If the implementation
behind xInt does not support XWeak or XInt is null then this reference will be null. behind xInt does not support XWeak or XInt is null then this reference will be null.
@param xInt another hard interface reference @param xInt another hard interface reference
*/ */
WeakReferenceHelper( const css::uno::Reference< css::uno::XInterface > & xInt ); WeakReferenceHelper( const css::uno::Reference< css::uno::XInterface > & xInt );
/** Releases this reference. /** Releases this reference.
*/ */
~WeakReferenceHelper(); ~WeakReferenceHelper();
...@@ -94,6 +96,7 @@ public: ...@@ -94,6 +96,7 @@ public:
@return hard reference or null, if the weakly referenced interface has gone @return hard reference or null, if the weakly referenced interface has gone
*/ */
css::uno::Reference< css::uno::XInterface > SAL_CALL get() const; css::uno::Reference< css::uno::XInterface > SAL_CALL get() const;
/** Gets a hard reference to the object. /** Gets a hard reference to the object.
@return hard reference or null, if the weakly referenced interface has gone @return hard reference or null, if the weakly referenced interface has gone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment