summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/button.hxx4
-rw-r--r--include/vcl/toolbox.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index 60a2aaff7249..3a4159d35392 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -202,7 +202,7 @@ private:
inline void PushButton::Check( bool bCheck )
{
- SetState( (bCheck) ? TRISTATE_TRUE : TRISTATE_FALSE );
+ SetState( bCheck ? TRISTATE_TRUE : TRISTATE_FALSE );
}
inline bool PushButton::IsChecked() const
@@ -474,7 +474,7 @@ public:
inline void CheckBox::Check( bool bCheck )
{
- SetState( (bCheck) ? TRISTATE_TRUE : TRISTATE_FALSE );
+ SetState( bCheck ? TRISTATE_TRUE : TRISTATE_FALSE );
}
inline bool CheckBox::IsChecked() const
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 6a936d8e03fa..e6d213027e60 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -518,7 +518,7 @@ public:
inline void ToolBox::CheckItem( sal_uInt16 nItemId, bool bCheck )
{
- SetItemState( nItemId, (bCheck) ? TRISTATE_TRUE : TRISTATE_FALSE );
+ SetItemState( nItemId, bCheck ? TRISTATE_TRUE : TRISTATE_FALSE );
}
inline bool ToolBox::IsItemChecked( sal_uInt16 nItemId ) const