loplugin:salbool: Automatic rewrite of sal_False/True

Change-Id: Ic3e7658ccfd23fa29af46eac971deac5a0373377
This commit is contained in:
Stephan Bergmann 2016-04-20 17:19:15 +02:00
parent 67187c1417
commit 4b9573ba66
6 changed files with 11 additions and 11 deletions

View file

@ -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;
}

View file

@ -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;

View file

@ -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()

View file

@ -449,7 +449,7 @@ sal_Bool SAL_CALL
MasterScriptProvider::hasChildNodes()
throw ( css::uno::RuntimeException, std::exception )
{
return sal_True;
return true;
}

View file

@ -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();

View file

@ -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 >