diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-28 14:35:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-03 07:26:26 +0000 |
commit | 82e9cfc9910005e55f57ab13dd685f8860f47d27 (patch) | |
tree | f0fa33b4a665bef70f2ffa3e5b73727a9e6d8057 /xmloff/source/style/xmlnumi.cxx | |
parent | eb7593daa4bac21bd68182c8bbbd3ee3bd7b64dd (diff) |
use Any constructor for bool values, instead of temporary vars
mostly found with:
git grep -n 'setValue.*cppu.*UnoType.*bool.*get'
Change-Id: Ie8e5aa6402d25dbe90b0f492031a245bb222c1a5
Reviewed-on: https://gerrit.libreoffice.org/24464
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/style/xmlnumi.cxx')
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index 4239164ac0bd..09280f2291f5 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -1112,10 +1112,7 @@ void SvxXMLListStyleContext::FillUnoNumRule( if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName( sIsContinuousNumbering ) ) { - Any aAny; - sal_Bool bTmp = bConsecutive; - aAny.setValue( &bTmp, cppu::UnoType<bool>::get() ); - xPropSet->setPropertyValue( sIsContinuousNumbering, aAny ); + xPropSet->setPropertyValue( sIsContinuousNumbering, Any(bConsecutive) ); } } catch (const Exception&) |