summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-30 14:31:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-30 14:31:24 +0200
commite630df7853a62225cd77fc4262689ef5607d2907 (patch)
tree7d9f994e96f9f2d14c26dccbca622ad147567a69 /basic
parent46d5d475b114b93a76502d58637468e404a8562b (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 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx3
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;