summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-26 14:10:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-26 14:10:03 +0200
commitce75e5b931373368b35dc9a150250c014454d82a (patch)
tree4a6e4ecd96d93982e03c54e5c307c57c03e2ae8d /pyuno
parent8811c41abcbcb39ff79f570dfa094587e8cb95f2 (diff)
loplugin:implicitboolconversion
Change-Id: If495a415d4263d1932c03a31d07a517218533847
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 413cab0b420f..8f7a6a67e19a 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;