summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-28 14:35:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-03 07:26:26 +0000
commit82e9cfc9910005e55f57ab13dd685f8860f47d27 (patch)
treef0fa33b4a665bef70f2ffa3e5b73727a9e6d8057 /starmath
parenteb7593daa4bac21bd68182c8bbbd3ee3bd7b64dd (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 'starmath')
-rw-r--r--starmath/source/mathmlexport.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 8f9e96856541..aea07edde6e1 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -161,10 +161,8 @@ bool SmXMLExportWrapper::Export(SfxMedium &rMedium)
SvtSaveOptions aSaveOpt;
OUString sUsePrettyPrinting("UsePrettyPrinting");
- sal_Bool bUsePrettyPrinting( bFlat || aSaveOpt.IsPrettyPrinting() );
- Any aAny;
- aAny.setValue( &bUsePrettyPrinting, cppu::UnoType<bool>::get() );
- xInfoSet->setPropertyValue( sUsePrettyPrinting, aAny );
+ bool bUsePrettyPrinting( bFlat || aSaveOpt.IsPrettyPrinting() );
+ xInfoSet->setPropertyValue( sUsePrettyPrinting, Any(bUsePrettyPrinting) );
// Set base URI
OUString sPropName( "BaseURI" );
@@ -337,9 +335,7 @@ bool SmXMLExportWrapper::WriteThroughComponent(
// all streams must be encrypted in encrypted document
OUString aTmpPropName( "UseCommonStoragePasswordEncryption" );
- sal_Bool bTrue = true;
- aAny.setValue( &bTrue, cppu::UnoType<bool>::get() );
- xSet->setPropertyValue( aTmpPropName, aAny );
+ xSet->setPropertyValue( aTmpPropName, Any(true) );
// set Base URL
if ( rPropSet.is() )