diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-11-30 18:33:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-10 21:12:20 +0000 |
commit | 8aac6ecc58fa2c475f34817e607efb6a31317898 (patch) | |
tree | f54e8b33783d244518c073d0615f054b8e468774 /sw/source/ui/index | |
parent | 5f77059ff156ecbd69967f278d3e8f814c15958e (diff) |
Use Any specializations for bool, instead of SetValue
Change-Id: I7a5babe494bdb09a71164ea74d7be3f6bf985ff6
Reviewed-on: https://gerrit.libreoffice.org/13215
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/ui/index')
-rw-r--r-- | sw/source/ui/index/cntex.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
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"; |