Kaydet (Commit) 678c738b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: Ibe187d7a2600c9f6a8524b5fc5665aa95099f512
üst 6a6fad99
......@@ -971,7 +971,7 @@ OUString SAL_CALL FmXGridControl::getMode() throw( RuntimeException, std::except
sal_Bool SAL_CALL FmXGridControl::supportsMode(const OUString& Mode) throw( RuntimeException, std::exception )
{
Reference< ::com::sun::star::util::XModeSelector > xPeer(getPeer(), UNO_QUERY);
return xPeer.is() ? xPeer->supportsMode(Mode) : sal_False;
return xPeer.is() && xPeer->supportsMode(Mode);
}
// helper class which prevents that in the peer's header the FmGridListener must be known
......
......@@ -3744,7 +3744,7 @@ sal_Bool SAL_CALL FmXEditCell::isEditable() throw( RuntimeException, std::except
{
::osl::MutexGuard aGuard( m_aMutex );
return ( m_pEditImplementation && !m_pEditImplementation->IsReadOnly() && m_pEditImplementation->GetControl().IsEnabled() ) ? sal_True : sal_False;
return m_pEditImplementation && !m_pEditImplementation->IsReadOnly() && m_pEditImplementation->GetControl().IsEnabled();
}
......
......@@ -550,7 +550,7 @@ void SAL_CALL CellCursor::split( sal_Int32 nColumns, sal_Int32 nRows ) throw (No
sal_Bool SAL_CALL CellCursor::isMergeable( ) throw (RuntimeException, std::exception)
{
CellPos aStart, aEnd;
return GetMergedSelection( aStart, aEnd ) ? sal_True : sal_False;
return GetMergedSelection( aStart, aEnd );
}
......
......@@ -94,7 +94,7 @@ Property SAL_CALL FastPropertySetInfo::getPropertyByName( const OUString& aName
sal_Bool SAL_CALL FastPropertySetInfo::hasPropertyByName( const OUString& aName ) throw (RuntimeException, std::exception)
{
return hasProperty( aName ) != 0 ? sal_True : sal_False;
return hasProperty( aName ) != 0;
}
FastPropertySet::FastPropertySet( const rtl::Reference< FastPropertySetInfo >& xInfo )
......
......@@ -321,7 +321,7 @@ sal_Bool SAL_CALL TableDesignStyle::hasByName( const OUString& rName ) throw(Ru
const CellStyleNameMap& rMap = getCellStyleNameMap();
CellStyleNameMap::const_iterator iter = rMap.find( rName );
return ( iter != rMap.end() ) ? sal_True : sal_False;
return iter != rMap.end();
}
......@@ -563,7 +563,7 @@ sal_Bool SAL_CALL TableDesignFamily::hasElements() throw(RuntimeException, std::
{
SolarMutexGuard aGuard;
return maDesigns.empty() ? sal_False : sal_True;
return !maDesigns.empty();
}
......
......@@ -63,7 +63,7 @@ void SvxTbxCtlDraw::StateChanged( sal_uInt16 nSID, SfxItemState eState,
Reference< XLayoutManager > xLayoutMgr = getLayoutManager();
if ( xLayoutMgr.is() )
GetToolBox().CheckItem(
GetId(), xLayoutMgr->isElementVisible( m_sToolboxName ) != sal_False );
GetId(), xLayoutMgr->isElementVisible( m_sToolboxName ) );
}
......
......@@ -307,7 +307,7 @@ static void impl_execute( SdrView*, SfxRequest& rReq, SdrCustomShapeGeometryItem
com::sun::star::beans::PropertyValue aPropValue;
aPropValue.Name = sExtrusionColor;
aPropValue.Value <<= bAuto ? sal_False : sal_True;
aPropValue.Value <<= !bAuto;
rGeometryItem.SetPropertyValue( sExtrusion, aPropValue );
if( bAuto )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment