clang-analyzer-deadcode.DeadStores

Change-Id: Ib1163c1717e61d730b22c3d6d0a0a7cc171bba4e
This commit is contained in:
Stephan Bergmann 2015-10-05 09:51:38 +02:00
parent fe0444dbd4
commit e676f98f34

View File

@ -142,11 +142,11 @@ Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(css:
guard.clear();
// WeakObject has a (XInterface *) cast operator
ret = *m_pObject;
n = osl_atomic_decrement( &m_pObject->m_refCount );
osl_atomic_decrement( &m_pObject->m_refCount );
}
else
// Another thread wait in the dispose method at the guard
n = osl_atomic_decrement( &m_pObject->m_refCount );
osl_atomic_decrement( &m_pObject->m_refCount );
}
return ret;