summaryrefslogtreecommitdiff
path: root/basctl
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 /basctl
parentdd484af7cfb472a39c9afebc6dad9ea28d1224c4 (diff)
'!= false' is redundant, and confusing - kill it.
Change-Id: I1a52b9ce7b590e8cf274a2daaa1c55cfc1efe48b
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/managelang.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx
index 5f0f4b8dbc33..175e464d3227 100644
--- a/basctl/source/dlged/managelang.cxx
+++ b/basctl/source/dlged/managelang.cxx
@@ -209,10 +209,10 @@ IMPL_LINK_NOARG(ManageLanguageDialog, SelectHdl)
bool bEmpty = ( !nCount ||
m_pLanguageLB->GetEntryPos( m_sCreateLangStr ) != LISTBOX_ENTRY_NOTFOUND );
bool bSelect = ( m_pLanguageLB->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND );
- bool bEnable = ( !bEmpty && bSelect != false );
+ bool bEnable = !bEmpty && bSelect;
- m_pDeletePB->Enable( bEnable != false );
- m_pMakeDefPB->Enable( bEnable != false && nCount > 1 && m_pLanguageLB->GetSelectEntryCount() == 1 );
+ m_pDeletePB->Enable(bEnable);
+ m_pMakeDefPB->Enable(bEnable && nCount > 1 && m_pLanguageLB->GetSelectEntryCount() == 1);
return 1;
}