diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:19:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:49 +0200 |
commit | 4b9573ba669173d0d0d7653c9bcef276ec151cec (patch) | |
tree | 1cf5d6b8f648ccbb7b4a63d92bf160725511c7a3 /scripting | |
parent | 67187c14175778b7939692d6be6e8bab2930be1b (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ic3e7658ccfd23fa29af46eac971deac5a0373377
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/basmethnode.cxx | 4 | ||||
-rw-r--r-- | scripting/source/dlgprov/dlgprov.cxx | 2 | ||||
-rw-r--r-- | scripting/source/provider/BrowseNodeFactoryImpl.cxx | 8 | ||||
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 2 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 2 | ||||
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 4 |
6 files changed, 11 insertions, 11 deletions
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 > |