diff options
author | Luke Deller <luke@deller.id.au> | 2016-05-08 20:58:33 +1000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-09 09:03:03 +0000 |
commit | f4604e43a653a067633c24e069b272b6309b2151 (patch) | |
tree | 3df27b37906b77b0f1b64b7803127c5147116f03 /pyuno | |
parent | a7b4a0a9f387310832cce7a6850ec438ce03b31e (diff) |
Fix call to deleted Any constructor
A recent commit 6e70103d deleted some Any constructors and methods, and
updated all the places where these had been called - except it looks
like one call was missed, active only when building against Python 2.
Adjust this call following what was done for the Python 3 case.
Change-Id: I0f92b7476b617d9fdf0e5f698e363360497d115e
Reviewed-on: https://gerrit.libreoffice.org/24759
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'pyuno')
-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 0669360fafc7..468d21f5b57d 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -658,13 +658,11 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con { if( o == Py_True ) { - sal_Bool b = sal_True; - a = Any( &b, cppu::UnoType<bool>::get() ); + a <<= true; } else if ( o == Py_False ) { - sal_Bool b = sal_False; - a = Any( &b, cppu::UnoType<bool>::get() ); + a <<= false; } else { |