diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 14:10:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 14:10:03 +0200 |
commit | ce75e5b931373368b35dc9a150250c014454d82a (patch) | |
tree | 4a6e4ecd96d93982e03c54e5c307c57c03e2ae8d /pyuno | |
parent | loplugin:cstylecast (diff) | |
download | core-ce75e5b931373368b35dc9a150250c014454d82a.tar.gz core-ce75e5b931373368b35dc9a150250c014454d82a.zip |
loplugin:implicitboolconversion
Change-Id: If495a415d4263d1932c03a31d07a517218533847
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno.cxx | 2 |
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; |