summaryrefslogtreecommitdiffstats
path: root/forms/source/component
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-16 13:50:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-16 14:00:17 +0200
commit891c80e1723c4aac2457d5a76b1b0e042e78b70b (patch)
treeda59f5fc1d19e5d3278f96f9a457cb2d3c3ebdcb /forms/source/component
parentloplugin:simplifybool (diff)
downloadcore-891c80e1723c4aac2457d5a76b1b0e042e78b70b.tar.gz
core-891c80e1723c4aac2457d5a76b1b0e042e78b70b.zip
loplugin:simplifybool
Change-Id: I8b704401233fa865c8ec4d4663d720a3d7d8de69
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/FormComponent.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 1b978d15c151..cc27283a22dc 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -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)
{
- 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)
{
- return m_xControl.is() ? m_xControl->isTransparent() : sal_True;
+ return !m_xControl.is() || m_xControl->isTransparent();
}
OBoundControl::OBoundControl( const Reference< XComponentContext >& _rxContext,