From ce75e5b931373368b35dc9a150250c014454d82a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 26 Jun 2015 14:10:03 +0200 Subject: loplugin:implicitboolconversion Change-Id: If495a415d4263d1932c03a31d07a517218533847 --- pyuno/source/module/pyuno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyuno/source/module/pyuno.cxx') 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; -- cgit