[Libreoffice-commits] core.git: pyuno/source
Stephan Bergmann
sbergman at redhat.com
Fri Jun 26 05:06:15 PDT 2015
pyuno/source/module/pyuno.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c44021f754148dda502c700716c54efd1c6e7cf9
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jun 26 14:05:44 2015 +0200
loplugin:salbool
Change-Id: I4875b12807aed36f758d81c731e2ac52a3a606e4
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index ce9983e..c4f82d3 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -1346,8 +1346,8 @@ int PyUNO_contains( PyObject *self, PyObject *pKey )
xNameAccess.set( me->members->wrappedObject, UNO_QUERY );
if ( xNameAccess.is() )
{
- sal_Bool hasKey = xNameAccess->hasByName( sKey );
- return hasKey == sal_True ? 1 : 0;
+ bool hasKey = xNameAccess->hasByName( sKey );
+ return hasKey ? 1 : 0;
}
}
}
More information about the Libreoffice-commits
mailing list