[Libreoffice-commits] core.git: pyuno/source
Stephan Bergmann
sbergman at redhat.com
Fri Jun 26 05:10:31 PDT 2015
pyuno/source/module/pyuno.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ce75e5b931373368b35dc9a150250c014454d82a
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Jun 26 14:10:03 2015 +0200
loplugin:implicitboolconversion
Change-Id: If495a415d4263d1932c03a31d07a517218533847
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 413cab0..8f7a6a6 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -558,7 +558,7 @@ int PyUNO_bool( PyObject* self )
{
int nLen = lcl_detach_getLength( me );
if (nLen >= 0)
- return !!nLen;
+ return nLen == 0 ? 0 : 1;
// Anything which doesn't have members is a scalar object and therefore true
return 1;
More information about the Libreoffice-commits
mailing list