From 4b9573ba669173d0d0d7653c9bcef276ec151cec Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Apr 2016 17:19:15 +0200 Subject: loplugin:salbool: Automatic rewrite of sal_False/True Change-Id: Ic3e7658ccfd23fa29af46eac971deac5a0373377 --- scripting/source/basprov/basmethnode.cxx | 4 ++-- scripting/source/dlgprov/dlgprov.cxx | 2 +- scripting/source/provider/BrowseNodeFactoryImpl.cxx | 8 ++++---- scripting/source/provider/MasterScriptProvider.cxx | 2 +- scripting/source/stringresource/stringresource.cxx | 2 +- scripting/source/vbaevents/eventhelper.cxx | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'scripting') diff --git a/scripting/source/basprov/basmethnode.cxx b/scripting/source/basprov/basmethnode.cxx index cc6637eb9464..e7480161eed9 100644 --- a/scripting/source/basprov/basmethnode.cxx +++ b/scripting/source/basprov/basmethnode.cxx @@ -138,7 +138,7 @@ namespace basprov { SolarMutexGuard aGuard; - return sal_False; + return false; } @@ -312,7 +312,7 @@ namespace basprov { (void)aName; - return sal_False; + return false; } diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx index 02f5abc7d5e5..30d8b2331178 100644 --- a/scripting/source/dlgprov/dlgprov.cxx +++ b/scripting/source/dlgprov/dlgprov.cxx @@ -462,7 +462,7 @@ static const char aResourceResolverPropName[] = "ResourceResolver"; xDialogControl->setModel( rxDialogModel ); // set visible - xDialogControl->setVisible( sal_False ); + xDialogControl->setVisible( false ); // get the parent of the dialog control Reference< XWindowPeer > xPeer; diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index e0833497d8b1..e8d61bdb3198 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -134,7 +134,7 @@ public: { if ( m_Nodes[ i ]->hasChildNodes() ) { - return sal_True; + return true; } } catch ( Exception& ) @@ -145,7 +145,7 @@ public: } } - return sal_False; + return false; } virtual sal_Int16 SAL_CALL getType() @@ -229,7 +229,7 @@ public: virtual sal_Bool SAL_CALL hasChildNodes() throw ( RuntimeException, std::exception ) override { - return sal_True; + return true; } virtual sal_Int16 SAL_CALL getType() @@ -634,7 +634,7 @@ public: virtual sal_Bool SAL_CALL hasChildNodes() throw ( RuntimeException, std::exception ) override { - return sal_True; // will always be user and share + return true; // will always be user and share } virtual sal_Int16 SAL_CALL getType() diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index 695480c4238e..df823d8c5fa0 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -449,7 +449,7 @@ sal_Bool SAL_CALL MasterScriptProvider::hasChildNodes() throw ( css::uno::RuntimeException, std::exception ) { - return sal_True; + return true; } diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 64ae70f6e85c..7ff477c0b5f7 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1013,7 +1013,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage xProps->setPropertyValue( aPropName, uno::makeAny( aMime ) ); aPropName = "UseCommonStoragePasswordEncryption"; - xProps->setPropertyValue( aPropName, uno::makeAny( sal_True ) ); + xProps->setPropertyValue( aPropName, uno::makeAny( true ) ); } Reference< io::XOutputStream > xOutputStream = xElementStream->getOutputStream(); diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index d43f930b0166..675f85b004fb 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -526,8 +526,8 @@ ReadOnlyEventsNameContainer::hasByName( const OUString& aName ) throw (RuntimeEx { EventSupplierHash::const_iterator it = m_hEvents.find( aName ); if ( it == m_hEvents.end() ) - return sal_False; - return sal_True; + return false; + return true; } class ReadOnlyEventsSupplier : public ::cppu::WeakImplHelper< XScriptEventsSupplier > -- cgit