From 8aac6ecc58fa2c475f34817e607efb6a31317898 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 30 Nov 2014 18:33:21 +0100 Subject: Use Any specializations for bool, instead of SetValue Change-Id: I7a5babe494bdb09a71164ea74d7be3f6bf985ff6 Reviewed-on: https://gerrit.libreoffice.org/13215 Tested-by: LibreOffice gerrit bot Reviewed-by: Michael Stahl --- sw/source/ui/index/cntex.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sw/source/ui/index') diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx index f304acc3d638..d63145a794fb 100644 --- a/sw/source/ui/index/cntex.cxx +++ b/sw/source/ui/index/cntex.cxx @@ -92,9 +92,7 @@ static void lcl_SetBOOLProp( { if(xInfo->hasPropertyByName(aPropName)) { - uno::Any aValue; - aValue.setValue(&bValue, ::getCppuBooleanType()); - xProps->setPropertyValue(aPropName, aValue); + xProps->setPropertyValue(aPropName, makeAny(bValue)); } } @@ -194,9 +192,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample( if(xSectPr.is()) { - sal_Bool bTemp = i == nTOXIndex; - aVal.setValue(&bTemp, ::getBooleanCppuType()); - xSectPr->setPropertyValue(UNO_NAME_IS_VISIBLE, aVal); + xSectPr->setPropertyValue(UNO_NAME_IS_VISIBLE, makeAny(i == nTOXIndex)); } } // set properties @@ -351,8 +347,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample( if(TOKEN_TAB_STOP == aToken.eTokenType) { pPropValArr[2].Name = "TabStopRightAligned"; - sal_Bool bTemp = SVX_TAB_ADJUST_END == aToken.eTabAlign; - pPropValArr[2].Value.setValue(&bTemp, ::getBooleanCppuType()); + pPropValArr[2].Value <<= SVX_TAB_ADJUST_END == aToken.eTabAlign; pPropValArr[3].Name = "TabStopFillCharacter"; pPropValArr[3].Value <<= OUString(aToken.cTabFillChar); pPropValArr[4].Name = "TabStopPosition"; -- cgit