summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-23 09:57:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-23 11:57:29 +0200
commit8256c139519c2431fdfe612c534416a7c93a9a38 (patch)
tree9bd5b2f8b0b134b598079033c40205ed3ea97453 /bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
parent476c50943864e70a4758ccf01e2567067bc7c44f (diff)
loplugin:comparisonwithconstant in bridges
Change-Id: I14983a829daf481e31eaa955b0756bda89b87ee1 Reviewed-on: https://gerrit.libreoffice.org/37940 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx')
-rw-r--r--bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
index c06f5775f2a8..3fe7d98ea452 100644
--- a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
+++ b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
@@ -120,7 +120,7 @@ com::sun::star::uno::XInterface * CppInterfaceProxy::create(
void CppInterfaceProxy::acquireProxy()
{
- if (1 == osl_atomic_increment( &nRef ))
+ if (osl_atomic_increment( &nRef ) == 1)
{
// rebirth of proxy zombie
// register at cpp env