diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-04 11:59:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-04 11:59:23 +0200 |
commit | 6e70103da07ec67b1c1f106a8fcd064e3df97271 (patch) | |
tree | 091834cdeb1358b9b3b0c3416f8672cc7cfb26d0 /pyuno/source | |
parent | 019a0fbdd860994ba727f19eba0879136406d0f9 (diff) |
While at it, delete Any functions on sal_Bool*
(at least for LIBO_INTERNAL_ONLY), to help further reduce the occurrences of
sal_Bool across the code base
Change-Id: I70654a0cb56655984c717b7b894f26c9ab47536e
Diffstat (limited to 'pyuno/source')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 7a481f98cacb..0669360fafc7 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -692,13 +692,11 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con // Convert the Python 3 booleans that are actually of type PyLong. if(o == Py_True) { - sal_Bool b = true; - a = Any(&b, cppu::UnoType<bool>::get()); + a <<= true; } else if(o == Py_False) { - sal_Bool b = false; - a = Any(&b, cppu::UnoType<bool>::get()); + a <<= false; } else { |