clang-analyzer-deadcode.DeadStores
Change-Id: Ib1163c1717e61d730b22c3d6d0a0a7cc171bba4e
This commit is contained in:
parent
fe0444dbd4
commit
e676f98f34
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user