summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/awt/vclxwindow.cxx2
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx4
-rw-r--r--toolkit/source/controls/geometrycontrolmodel.cxx6
3 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index b7e48d50af36..d424479021aa 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -378,7 +378,7 @@ void VCLXWindow::SetWindow( Window* pWindow )
if ( GetWindow() )
{
GetWindow()->AddEventListener( LINK( this, VCLXWindow, WindowEventListener ) );
- bool bDirectVisible = pWindow ? pWindow->IsVisible() : false;
+ bool bDirectVisible = pWindow && pWindow->IsVisible();
mpImpl->setDirectVisible( bDirectVisible );
}
}
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index b1426faaa8d7..fe33e1ea40c1 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -134,7 +134,7 @@ public:
bool operator()( const ControlModelContainerBase::UnoControlModelHolder& _rCompare )
{
- return ( _rCompare.second == m_rName ) ? true : false;
+ return _rCompare.second == m_rName;
}
};
@@ -172,7 +172,7 @@ public:
bool operator()( const ControlModelContainerBase::UnoControlModelHolder& _rCompare )
{
- return ( _rCompare.first.get() == m_xReference.get() ) ? true : false;
+ return _rCompare.first.get() == m_xReference.get();
}
};
diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx
index 786e0b3fcf17..18f470a6240a 100644
--- a/toolkit/source/controls/geometrycontrolmodel.cxx
+++ b/toolkit/source/controls/geometrycontrolmodel.cxx
@@ -498,7 +498,7 @@
{
bool operator()( const Property& _rLHS, const Property& _rRHS )
{
- return _rLHS.Name < _rRHS.Name ? true : false;
+ return _rLHS.Name < _rRHS.Name;
}
};
@@ -510,7 +510,7 @@
bool operator()( const Property& _rLHS )
{
- return _rLHS.Name == m_rCompare ? true : false;
+ return _rLHS.Name == m_rCompare;
}
};
@@ -593,7 +593,7 @@
bool operator()( sal_Int32 _nLHS )
{
- return _nLHS == m_nCompare ? true : false;
+ return _nLHS == m_nCompare;
}
};