summaryrefslogtreecommitdiff
path: root/UnoControls/source/base/basecontainercontrol.cxx
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/base/basecontainercontrol.cxx
parent4abe5e61ddc55fcfb0e230d898dd10d7f7e1f793 (diff)
bool improvements
Change-Id: I24fae431d9e2b99cd6ac937956bb401ecfebc943
Diffstat (limited to 'UnoControls/source/base/basecontainercontrol.cxx')
-rw-r--r--UnoControls/source/base/basecontainercontrol.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx
index 7c1a9687d52f..93f7cc209b0c 100644
--- a/UnoControls/source/base/basecontainercontrol.cxx
+++ b/UnoControls/source/base/basecontainercontrol.cxx
@@ -60,7 +60,7 @@ Any SAL_CALL BaseContainerControl::queryInterface( const Type& rType ) throw( Ru
// Don't use mutex or guard in this method!!! Is a method of XInterface.
Any aReturn ;
Reference< XInterface > xDel = BaseControl::impl_getDelegator();
- if ( xDel.is() == sal_True )
+ if ( xDel.is() )
{
// If an delegator exist, forward question to his queryInterface.
// Delegator will ask his own queryAggregation!
@@ -122,7 +122,7 @@ Any SAL_CALL BaseContainerControl::queryAggregation( const Type& aType ) throw(
);
// If searched interface supported by this class ...
- if ( aReturn.hasValue() == sal_True )
+ if ( aReturn.hasValue() )
{
// ... return this information.
return aReturn ;
@@ -141,7 +141,7 @@ Any SAL_CALL BaseContainerControl::queryAggregation( const Type& aType ) throw(
void SAL_CALL BaseContainerControl::createPeer( const Reference< XToolkit >& xToolkit ,
const Reference< XWindowPeer >& xParent ) throw( RuntimeException )
{
- if ( getPeer().is() == sal_False )
+ if ( !getPeer().is() )
{
// create own peer
BaseControl::createPeer( xToolkit, xParent );