diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-04 11:59:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-04 11:59:23 +0200 |
commit | 6e70103da07ec67b1c1f106a8fcd064e3df97271 (patch) | |
tree | 091834cdeb1358b9b3b0c3416f8672cc7cfb26d0 /xmloff | |
parent | 019a0fbdd860994ba727f19eba0879136406d0f9 (diff) |
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
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLSectionSourceDDEImportContext.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtdropi.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtprhdl.cxx | 26 |
3 files changed, 16 insertions, 18 deletions
diff --git a/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx b/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx index b2bc4be9a291..b1b690e9e319 100644 --- a/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx +++ b/xmloff/source/text/XMLSectionSourceDDEImportContext.cxx @@ -92,7 +92,7 @@ void XMLSectionSourceDDEImportContext::StartElement( OUString sApplication; OUString sTopic; OUString sItem; - sal_Bool bAutomaticUpdate = false; + bool bAutomaticUpdate = false; sal_Int16 nLength = xAttrList->getLength(); for(sal_Int16 nAttr = 0; nAttr < nLength; nAttr++) @@ -146,7 +146,7 @@ void XMLSectionSourceDDEImportContext::StartElement( aValues[2] <<= sItem; aNames[2] = sDdeCommandElement; - aValues[3].setValue(&bAutomaticUpdate, cppu::UnoType<bool>::get()); + aValues[3] <<= bAutomaticUpdate; aNames[3] = sIsAutomaticUpdate; Reference<XMultiPropertySet> rMultiPropSet(rSectionPropertySet, diff --git a/xmloff/source/text/txtdropi.cxx b/xmloff/source/text/txtdropi.cxx index 85622bea7a6d..ef6e2c86a0dd 100644 --- a/xmloff/source/text/txtdropi.cxx +++ b/xmloff/source/text/txtdropi.cxx @@ -62,7 +62,7 @@ void XMLTextDropCapImportContext::ProcessAttrs( SvXMLTokenMap aTokenMap( aDropAttrTokenMap ); DropCapFormat aFormat; - sal_Bool bWholeWord = false; + bool bWholeWord = false; sal_Int32 nTmp; sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; @@ -115,7 +115,7 @@ void XMLTextDropCapImportContext::ProcessAttrs( aProp.maValue <<= aFormat; - aWholeWordProp.maValue.setValue( &bWholeWord, cppu::UnoType<bool>::get() ); + aWholeWordProp.maValue <<= bWholeWord; } XMLTextDropCapImportContext::XMLTextDropCapImportContext( diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx index d2c5779659fd..6d3a22735d73 100644 --- a/xmloff/source/text/txtprhdl.cxx +++ b/xmloff/source/text/txtprhdl.cxx @@ -334,14 +334,14 @@ bool XMLOpaquePropHdl_Impl::importXML( const SvXMLUnitConverter& ) const { bool bRet = true; - sal_Bool bVal = false; + bool bVal = false; if( IsXMLToken( rStrImpValue, XML_FOREGROUND ) ) bVal = true; else if( !IsXMLToken( rStrImpValue, XML_BACKGROUND ) ) bRet = false; if( bRet ) - rValue.setValue( &bVal, cppu::UnoType<bool>::get() ); + rValue <<= bVal; return bRet; } @@ -384,14 +384,14 @@ bool XMLContourModePropHdl_Impl::importXML( const SvXMLUnitConverter& ) const { bool bRet = true; - sal_Bool bVal = false; + bool bVal = false; if( IsXMLToken( rStrImpValue, XML_OUTSIDE ) ) bVal = true; else if( ! IsXMLToken( rStrImpValue, XML_FULL ) ) bRet = false; if( bRet ) - rValue.setValue( &bVal, cppu::UnoType<bool>::get() ); + rValue <<= bVal; return bRet; } @@ -434,7 +434,7 @@ bool XMLParagraphOnlyPropHdl_Impl::importXML( const SvXMLUnitConverter& ) const { bool bRet = true; - sal_Bool bVal = false; + bool bVal = false; if( ! IsXMLToken( rStrImpValue, XML_NO_LIMIT ) ) { @@ -444,7 +444,7 @@ bool XMLParagraphOnlyPropHdl_Impl::importXML( } if( bRet ) - rValue.setValue( &bVal, cppu::UnoType<bool>::get() ); + rValue <<= bVal; return bRet; } @@ -552,7 +552,7 @@ bool XMLFrameProtectPropHdl_Impl::importXML( const SvXMLUnitConverter& ) const { bool bRet = true; - sal_Bool bVal = false; + bool bVal = false; if( ! IsXMLToken( rStrImpValue, XML_NONE ) ) { bRet = false; @@ -570,7 +570,7 @@ bool XMLFrameProtectPropHdl_Impl::importXML( } if( bRet ) - rValue.setValue( &bVal, cppu::UnoType<bool>::get() ); + rValue <<= bVal; return bRet; } @@ -746,8 +746,7 @@ bool XMLHoriMirrorPropHdl_Impl::importXML( if( bRet ) { - sal_Bool bTmp = nHoriMirror != 0; - rValue.setValue( &bTmp, cppu::UnoType<bool>::get() ); + rValue <<= (nHoriMirror != 0); } return bRet; @@ -794,7 +793,7 @@ bool XMLGrfMirrorPropHdl_Impl::importXML( const SvXMLUnitConverter& ) const { bool bRet = true; - sal_Bool bVal = false; + bool bVal = false; if( ! IsXMLToken( rStrImpValue, XML_NONE ) ) { bRet = false; @@ -813,7 +812,7 @@ bool XMLGrfMirrorPropHdl_Impl::importXML( } if( bRet ) - rValue.setValue( &bVal, cppu::UnoType<bool>::get() ); + rValue <<= bVal; return bRet; } @@ -1087,8 +1086,7 @@ bool XMLTextSyncWidthHeightPropHdl_Impl::importXML( Any& rValue, const SvXMLUnitConverter& ) const { - sal_Bool bValue = (rStrImpValue == sValue ); - rValue.setValue( &bValue, cppu::UnoType<bool>::get() ); + rValue <<= (rStrImpValue == sValue); return true; } |