summaryrefslogtreecommitdiff
path: root/reportdesign
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 /reportdesign
parentd0e9aa6a2b07cb183dd7f8b06399b28f67588a83 (diff)
Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I801b6b73648715448198d582a087cc834f6e20c8
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index f657d233547e..42b0baf010a3 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -1812,10 +1812,10 @@ void SAL_CALL OReportDefinition::setModified( sal_Bool _bModified ) throw (beans
if ( m_pImpl->m_pReportModel->IsReadOnly() && _bModified )
throw beans::PropertyVetoException();
- if ( (m_pImpl->m_bModified ? 1 : 0) != _bModified )
+ if ( m_pImpl->m_bModified != bool(_bModified) )
{
m_pImpl->m_bModified = _bModified;
- if ( ( m_pImpl->m_pReportModel->IsChanged() ? 1 : 0 ) != _bModified )
+ if ( m_pImpl->m_pReportModel->IsChanged() != bool(_bModified) )
m_pImpl->m_pReportModel->SetChanged(_bModified);
lang::EventObject aEvent(*this);