diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 14:31:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 14:31:24 +0200 |
commit | e630df7853a62225cd77fc4262689ef5607d2907 (patch) | |
tree | 7d9f994e96f9f2d14c26dccbca622ad147567a69 /pyuno/source/module | |
parent | 46d5d475b114b93a76502d58637468e404a8562b (diff) |
Just use Any::operator <<= for sal_Unicode values
...now that sal_Unicode no longer clashes with sal_uInt16 on any platform (in
LIBO_INTERNAL_ONLY code), after e16fa715c43dcdf836ce8c400b6d54eae87b627d "Handle
wchar_t as native C++11 type on windows"
Change-Id: Id423dd6235bf14823fa5611b804c0974edbe64b3
Diffstat (limited to 'pyuno/source/module')
-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() ) ) { |