summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-21 17:43:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-21 18:24:04 +0100
commitd706527fd8377dfb43746529a59b2af0b40b6b6d (patch)
tree0f212c2fc26e02e6d97c7a244451223a71e632d7 /UnoControls/source/controls
parent4abe5e61ddc55fcfb0e230d898dd10d7f7e1f793 (diff)
bool improvements
Change-Id: I24fae431d9e2b99cd6ac937956bb401ecfebc943
Diffstat (limited to 'UnoControls/source/controls')
-rw-r--r--UnoControls/source/controls/OConnectionPointContainerHelper.cxx2
-rw-r--r--UnoControls/source/controls/OConnectionPointHelper.cxx2
-rw-r--r--UnoControls/source/controls/framecontrol.cxx4
-rw-r--r--UnoControls/source/controls/progressbar.cxx2
-rw-r--r--UnoControls/source/controls/progressmonitor.cxx2
-rw-r--r--UnoControls/source/controls/statusindicator.cxx10
6 files changed, 11 insertions, 11 deletions
diff --git a/UnoControls/source/controls/OConnectionPointContainerHelper.cxx b/UnoControls/source/controls/OConnectionPointContainerHelper.cxx
index 54f937064da3..b3e4f76d85b2 100644
--- a/UnoControls/source/controls/OConnectionPointContainerHelper.cxx
+++ b/UnoControls/source/controls/OConnectionPointContainerHelper.cxx
@@ -63,7 +63,7 @@ Any SAL_CALL OConnectionPointContainerHelper::queryInterface( const Type& aType
);
// If searched interface not supported by this class ...
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
// ... ask baseclasses.
aReturn = OWeakObject::queryInterface( aType );
diff --git a/UnoControls/source/controls/OConnectionPointHelper.cxx b/UnoControls/source/controls/OConnectionPointHelper.cxx
index 24eb001014e3..af4410a7a6a8 100644
--- a/UnoControls/source/controls/OConnectionPointHelper.cxx
+++ b/UnoControls/source/controls/OConnectionPointHelper.cxx
@@ -68,7 +68,7 @@ Any SAL_CALL OConnectionPointHelper::queryInterface( const Type& aType ) throw(
);
// If searched interface not supported by this class ...
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
// ... ask baseclasses.
aReturn = OWeakObject::queryInterface( aType );
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx
index 6c30ee8c0f6f..8c9601b34773 100644
--- a/UnoControls/source/controls/framecontrol.cxx
+++ b/UnoControls/source/controls/framecontrol.cxx
@@ -162,11 +162,11 @@ Any SAL_CALL FrameControl::queryAggregation( const Type& aType ) throw( RuntimeE
);
// If searched interface not supported by this class ...
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
// ... ask baseclasses.
aReturn = OPropertySetHelper::queryInterface( aType );
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
aReturn = BaseControl::queryAggregation( aType );
}
diff --git a/UnoControls/source/controls/progressbar.cxx b/UnoControls/source/controls/progressbar.cxx
index aebf0f3e95a3..8df5d9ae39d4 100644
--- a/UnoControls/source/controls/progressbar.cxx
+++ b/UnoControls/source/controls/progressbar.cxx
@@ -157,7 +157,7 @@ Any SAL_CALL ProgressBar::queryAggregation( const Type& aType ) throw( RuntimeEx
);
// If searched interface not supported by this class ...
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
// ... ask baseclasses.
aReturn = BaseControl::queryAggregation( aType );
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx
index ae1c2b91d737..ab4dd8a244a3 100644
--- a/UnoControls/source/controls/progressmonitor.cxx
+++ b/UnoControls/source/controls/progressmonitor.cxx
@@ -207,7 +207,7 @@ Any SAL_CALL ProgressMonitor::queryAggregation( const Type& aType ) throw( Runti
);
// If searched interface not supported by this class ...
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
// ... ask baseclasses.
aReturn = BaseControl::queryAggregation( aType );
diff --git a/UnoControls/source/controls/statusindicator.cxx b/UnoControls/source/controls/statusindicator.cxx
index 03f0a3bd5985..49f76053e63b 100644
--- a/UnoControls/source/controls/statusindicator.cxx
+++ b/UnoControls/source/controls/statusindicator.cxx
@@ -167,7 +167,7 @@ Any SAL_CALL StatusIndicator::queryAggregation( const Type& aType ) throw( Runti
);
// If searched interface not supported by this class ...
- if ( aReturn.hasValue() == sal_False )
+ if ( !aReturn.hasValue() )
{
// ... ask baseclasses.
aReturn = BaseControl::queryAggregation( aType );
@@ -308,7 +308,7 @@ void SAL_CALL StatusIndicator::createPeer (
const css::uno::Reference< XWindowPeer > & rParent
) throw( RuntimeException )
{
- if( getPeer().is() == sal_False )
+ if( !getPeer().is() )
{
BaseContainerControl::createPeer( rToolkit, rParent );
@@ -447,18 +447,18 @@ void StatusIndicator::impl_paint ( sal_Int32 nX, sal_Int32 nY, const css::uno::R
// background = gray
css::uno::Reference< XWindowPeer > xPeer( impl_getPeerWindow(), UNO_QUERY );
- if( xPeer.is() == sal_True )
+ if( xPeer.is() )
xPeer->setBackground( STATUSINDICATOR_BACKGROUNDCOLOR );
// FixedText background = gray
css::uno::Reference< XControl > xTextControl( m_xText, UNO_QUERY );
xPeer = xTextControl->getPeer();
- if( xPeer.is() == sal_True )
+ if( xPeer.is() )
xPeer->setBackground( STATUSINDICATOR_BACKGROUNDCOLOR );
// Progress background = gray
xPeer = m_xProgressBar->getPeer();
- if( xPeer.is() == sal_True )
+ if( xPeer.is() )
xPeer->setBackground( STATUSINDICATOR_BACKGROUNDCOLOR );
// paint shadow border