From 4f8756f075e7777f4a681eb80dc002083129b5a5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Apr 2016 17:20:55 +0200 Subject: loplugin:salbool: Automatic rewrite of sal_False/True Change-Id: I57c1bd476183c941a70cc0c60fd4e42bbe95ccb2 --- unotools/source/config/configitem.cxx | 2 +- unotools/source/config/moduleoptions.cxx | 2 +- unotools/source/misc/closeveto.cxx | 2 +- unotools/source/misc/mediadescriptor.cxx | 2 +- unotools/source/misc/sharedunocomponent.cxx | 2 +- unotools/source/ucbhelper/ucbstreamhelper.cxx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 554c18bbe991..b951ce236bf8 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -356,7 +356,7 @@ Sequence< sal_Bool > ConfigItem::GetReadOnlyStates(const css::uno::Sequence< OUS // We must be sure to return a valid information every time! // Set default to non readonly... similar to the configuration handling of this property. for ( i=0; i xHierarchyAccess = GetTree(); diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index 4f476294d78a..880a1d5502eb 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -210,7 +210,7 @@ struct FactoryInfo { sTemplateFile = getStringSubstitution() - ->substituteVariables( sNewTemplateFile, sal_False ); + ->substituteVariables( sNewTemplateFile, false ); } else { diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx index 67f1c99afea4..3eeabc8eaee2 100644 --- a/unotools/source/misc/closeveto.cxx +++ b/unotools/source/misc/closeveto.cxx @@ -121,7 +121,7 @@ namespace utl { try { - i_data.xCloseable->close( sal_True ); + i_data.xCloseable->close( true ); } catch( const CloseVetoException& ) { } catch( const Exception& ) diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index 9734347e031a..e123474a1abf 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -533,7 +533,7 @@ bool MediaDescriptor::impl_openStreamWithPostData( const css::uno::Reference< cs css::uno::Reference< css::uno::XInterface >(), 1); // PostData can't be used in read/write mode! - (*this)[MediaDescriptor::PROP_READONLY()] <<= sal_True; + (*this)[MediaDescriptor::PROP_READONLY()] <<= true; // prepare the environment css::uno::Reference< css::task::XInteractionHandler > xInteraction = getUnpackedValueOrDefault( diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx index cbe74f91d478..21557c3dedd5 100644 --- a/unotools/source/misc/sharedunocomponent.cxx +++ b/unotools/source/misc/sharedunocomponent.cxx @@ -128,7 +128,7 @@ namespace utl // close try { - m_xCloseable->close( sal_True ); + m_xCloseable->close( true ); } catch( const CloseVetoException& ) { /* fine */ } catch( const Exception& ) diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx index ff11524ca8a8..fbd7828ef9ed 100644 --- a/unotools/source/ucbhelper/ucbstreamhelper.cxx +++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx @@ -90,7 +90,7 @@ static SvStream* lcl_CreateStream( const OUString& rFileName, StreamMode eOpenMo InsertCommandArgument aInsertArg; aInsertArg.Data = xInput; - aInsertArg.ReplaceExisting = sal_False; + aInsertArg.ReplaceExisting = false; Any aCmdArg; aCmdArg <<= aInsertArg; aContent.executeCommand( "insert", aCmdArg ); -- cgit