summaryrefslogtreecommitdiff
path: root/framework/source/classes
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 16:08:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-28 10:21:01 +0200
commite19cd844be171097dddf6319a037b7503ad2c922 (patch)
tree64ed67787f118d2b97036cc687242002e7bda5ce /framework/source/classes
parentd0e9aa6a2b07cb183dd7f8b06399b28f67588a83 (diff)
Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I801b6b73648715448198d582a087cc834f6e20c8
Diffstat (limited to 'framework/source/classes')
-rw-r--r--framework/source/classes/menumanager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx
index d7f09dc64507..fdfef14c28d6 100644
--- a/framework/source/classes/menumanager.cxx
+++ b/framework/source/classes/menumanager.cxx
@@ -329,7 +329,7 @@ throw ( RuntimeException, std::exception )
bool bCheckmark = false;
bool bMenuItemEnabled = m_pVCLMenu->IsItemEnabled( pStatusChangedMenu->nItemId );
- if ( Event.IsEnabled != (bMenuItemEnabled ? 1 : 0) )
+ if ( bool(Event.IsEnabled) != bMenuItemEnabled )
m_pVCLMenu->EnableItem( pStatusChangedMenu->nItemId, Event.IsEnabled );
if ( Event.State >>= bCheckmark )