summaryrefslogtreecommitdiff
path: root/sfx2
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 /sfx2
parentd0e9aa6a2b07cb183dd7f8b06399b28f67588a83 (diff)
Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I801b6b73648715448198d582a087cc834f6e20c8
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/guisaveas.cxx2
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 5437493c07e9..9610a8bd222b 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -1865,7 +1865,7 @@ void SfxStoringHelper::SetDocInfoState(
}
// set the modified flag back if required
- if ( ((bNoModify && bIsModified) ? 1 : 0) != xModifiable->isModified() )
+ if ( (bNoModify && bIsModified) != bool(xModifiable->isModified()) )
xModifiable->setModified( bIsModified );
}
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index 4bed8b2f3b59..e56ac06d7abd 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -605,7 +605,7 @@ sal_Bool SAL_CALL SfxBaseController::suspend( sal_Bool bSuspend ) throw( Runtime
SolarMutexGuard aGuard;
// ignore dublicate calls, which doesn't change anything real
- if (bSuspend == (m_pData->m_bSuspendState ? 1 : 0))
+ if (bool(bSuspend) == m_pData->m_bSuspendState)
return sal_True;
if ( bSuspend == sal_True )