Kaydet (Commit) 891c80e1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I8b704401233fa865c8ec4d4663d720a3d7d8de69
üst d9dd11e1
...@@ -321,12 +321,12 @@ void SAL_CALL OControl::setDesignMode(sal_Bool bOn) throw ( RuntimeException, st ...@@ -321,12 +321,12 @@ void SAL_CALL OControl::setDesignMode(sal_Bool bOn) throw ( RuntimeException, st
sal_Bool SAL_CALL OControl::isDesignMode() throw ( RuntimeException, std::exception) sal_Bool SAL_CALL OControl::isDesignMode() throw ( RuntimeException, std::exception)
{ {
return m_xControl.is() ? m_xControl->isDesignMode() : sal_True; return !m_xControl.is() || m_xControl->isDesignMode();
} }
sal_Bool SAL_CALL OControl::isTransparent() throw ( RuntimeException, std::exception) sal_Bool SAL_CALL OControl::isTransparent() throw ( RuntimeException, std::exception)
{ {
return m_xControl.is() ? m_xControl->isTransparent() : sal_True; return !m_xControl.is() || m_xControl->isTransparent();
} }
OBoundControl::OBoundControl( const Reference< XComponentContext >& _rxContext, OBoundControl::OBoundControl( const Reference< XComponentContext >& _rxContext,
......
...@@ -68,7 +68,7 @@ namespace frm ...@@ -68,7 +68,7 @@ namespace frm
FeatureStateEvent OAttributeDispatcher::buildStatusEvent() const FeatureStateEvent OAttributeDispatcher::buildStatusEvent() const
{ {
FeatureStateEvent aEvent( ORichTextFeatureDispatcher::buildStatusEvent() ); FeatureStateEvent aEvent( ORichTextFeatureDispatcher::buildStatusEvent() );
aEvent.IsEnabled = getEditView() ? !getEditView()->IsReadOnly() : sal_False; aEvent.IsEnabled = getEditView() && !getEditView()->IsReadOnly();
AttributeState aState; AttributeState aState;
if ( m_pMasterDispatcher ) if ( m_pMasterDispatcher )
......
...@@ -127,7 +127,7 @@ public: ...@@ -127,7 +127,7 @@ public:
const OUString& aName ) const OUString& aName )
throw( css::uno::RuntimeException ) SAL_OVERRIDE throw( css::uno::RuntimeException ) SAL_OVERRIDE
{ {
return hasItem( aName ) ? sal_True : sal_False; return hasItem( aName );
} }
}; };
......
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