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 /basic | |
parent | Trivial follow-up fix to 64061d8dd687efa1c78e5284ab01f2f16e5817c3 (diff) | |
download | core-e630df7853a62225cd77fc4262689ef5607d2907.tar.gz core-e630df7853a62225cd77fc4262689ef5607d2907.zip |
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 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 4d8bc81628d5..8154782def68 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -1418,8 +1418,7 @@ Any sbxToUnoValue( const SbxValue* pVar, const Type& rType, Property* pUnoProper } case TypeClass_CHAR: { - sal_Unicode c = pVar->GetChar(); - aRetVal.setValue( &c , cppu::UnoType<cppu::UnoCharType>::get() ); + aRetVal <<= pVar->GetChar(); break; } case TypeClass_STRING: aRetVal <<= pVar->GetOUString(); break; |