From 6e70103da07ec67b1c1f106a8fcd064e3df97271 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 4 May 2016 11:59:23 +0200 Subject: 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 --- pyuno/source/module/pyuno_runtime.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyuno/source') 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::get()); + a <<= true; } else if(o == Py_False) { - sal_Bool b = false; - a = Any(&b, cppu::UnoType::get()); + a <<= false; } else { -- cgit