From e676f98f34b6bdf1e54172581f29683f694e5353 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 5 Oct 2015 09:51:38 +0200 Subject: [PATCH] clang-analyzer-deadcode.DeadStores Change-Id: Ib1163c1717e61d730b22c3d6d0a0a7cc171bba4e --- cppuhelper/source/weak.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx index 661c687e8425..ee6c09748e8b 100644 --- a/cppuhelper/source/weak.cxx +++ b/cppuhelper/source/weak.cxx @@ -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;