From e630df7853a62225cd77fc4262689ef5607d2907 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 30 May 2016 14:31:24 +0200 Subject: 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 --- basic/source/classes/sbunoobj.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'basic') 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::get() ); + aRetVal <<= pVar->GetChar(); break; } case TypeClass_STRING: aRetVal <<= pVar->GetOUString(); break; -- cgit