summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-05-09 20:59:53 +0200
committerJan Holesovsky <kendy@collabora.com>2014-05-09 22:28:44 +0200
commit261b1ad80aae0dd9aba50190a4cf99011cc18fb9 (patch)
treef37e5e85296e64957d743671a2675b1909f1b173 /svtools
parentdd484af7cfb472a39c9afebc6dad9ea28d1224c4 (diff)
'!= false' is redundant, and confusing - kill it.
Change-Id: I1a52b9ce7b590e8cf274a2daaa1c55cfc1efe48b
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/fileview.cxx2
-rw-r--r--svtools/source/contnr/svlbitm.cxx2
-rw-r--r--svtools/source/contnr/treelistbox.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index d7ee71b719fa..3e6d1f09870d 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -545,7 +545,7 @@ inline bool SvtFileView_Impl::EnableNameReplacing( bool bEnable )
inline void SvtFileView_Impl::EndEditing( bool _bCancel )
{
if ( mpView->IsEditingActive() )
- mpView->EndEditing( _bCancel != false );
+ mpView->EndEditing(_bCancel);
}
// functions -------------------------------------------------------------
diff --git a/svtools/source/contnr/svlbitm.cxx b/svtools/source/contnr/svlbitm.cxx
index f42f86f23dfa..f624e75b9181 100644
--- a/svtools/source/contnr/svlbitm.cxx
+++ b/svtools/source/contnr/svlbitm.cxx
@@ -46,7 +46,7 @@ void SvLBoxButtonData::InitData( bool bImagesFromDefault, bool _bRadioBtn, const
bDataOk = false;
eState = SV_BUTTON_UNCHECKED;
pImpl->bDefaultImages = bImagesFromDefault;
- pImpl->bShowRadioButton = ( _bRadioBtn != false );
+ pImpl->bShowRadioButton = _bRadioBtn;
if ( bImagesFromDefault )
SetDefaultImages( pCtrl );
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 57553c8f3a52..17da0b73c2f4 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -3836,7 +3836,7 @@ bool SvTreeListBox::IsContextMenuHandlingEnabled( void ) const
void SvTreeListBox::EnableList( bool _bEnable )
{
// call base class method
- Window::Enable( _bEnable != false );
+ Window::Enable(_bEnable);
// then paint immediately
Paint( Rectangle( Point(), GetSizePixel() ) );
}