summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
parentd0e9aa6a2b07cb183dd7f8b06399b28f67588a83 (diff)
Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I801b6b73648715448198d582a087cc834f6e20c8
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/app/AppController.cxx2
-rw-r--r--dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 40bf4cef1ea7..1cbbf0e24897 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -525,7 +525,7 @@ sal_Bool SAL_CALL OApplicationController::suspend(sal_Bool bSuspend) throw( Runt
bool bCanSuspend = true;
- if ( (m_bSuspended ? 1 : 0) != bSuspend )
+ if ( m_bSuspended != bool(bSuspend) )
{
if ( bSuspend && !closeSubComponents() )
return sal_False;
diff --git a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
index d9e44161f2e8..cfe5df91130c 100644
--- a/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
+++ b/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
@@ -583,7 +583,7 @@ namespace dbaui
{
::osl::ClearableMutexGuard aGuard( getMutex() );
- if ( (m_pImpl->m_bModified ? 1 : 0) == i_bModified )
+ if ( m_pImpl->m_bModified == bool(i_bModified) )
return;
m_pImpl->m_bModified = i_bModified;