diff options
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 468d21f5b57d..7d7cfebc15c2 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -810,8 +810,7 @@ Any Runtime::pyObject2Any ( const PyRef & source, enum ConversionMode mode ) con } else if( PyObject_IsInstance( o, getCharClass( runtime ).get() ) ) { - sal_Unicode c = PyChar2Unicode( o ); - a.setValue( &c, cppu::UnoType<cppu::UnoCharType>::get()); + a <<= PyChar2Unicode( o ); } else if( PyObject_IsInstance( o, getAnyClass( runtime ).get() ) ) { |