From 6e70103da07ec67b1c1f106a8fcd064e3df97271 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 4 May 2016 11:59:23 +0200 Subject: While at it, delete Any functions on sal_Bool* (at least for LIBO_INTERNAL_ONLY), to help further reduce the occurrences of sal_Bool across the code base Change-Id: I70654a0cb56655984c717b7b894f26c9ab47536e --- sc/source/ui/unoobj/miscuno.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sc/source/ui/unoobj') diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx index 074286cc1f02..bc20a47e8e72 100644 --- a/sc/source/ui/unoobj/miscuno.cxx +++ b/sc/source/ui/unoobj/miscuno.cxx @@ -164,8 +164,7 @@ sal_Int32 ScUnoHelpFunctions::GetEnumFromAny( const uno::Any& aAny ) void ScUnoHelpFunctions::SetBoolInAny( uno::Any& rAny, bool bValue ) { - sal_Bool bTemp = bValue ? 1 : 0; - rAny.setValue( &bTemp, cppu::UnoType::get() ); + rAny <<= bValue; } void ScUnoHelpFunctions::SetOptionalPropertyValue( -- cgit