summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/miscuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/miscuno.cxx')
-rw-r--r--sc/source/ui/unoobj/miscuno.cxx3
1 files changed, 1 insertions, 2 deletions
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<bool>::get() );
+ rAny <<= bValue;
}
void ScUnoHelpFunctions::SetOptionalPropertyValue(