From b0494019dfb9224c8f0e83f55f4dbd639fe4fc78 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 16 Jul 2015 13:53:16 +0200 Subject: loplugin:simplifybool Change-Id: Ia11e61456f6d915aab9da798ce4a2f89e82c189d --- reportdesign/source/core/api/Section.cxx | 2 +- reportdesign/source/ui/report/ReportController.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx index 0007774750ed..c5b14435b716 100644 --- a/reportdesign/source/core/api/Section.cxx +++ b/reportdesign/source/core/api/Section.cxx @@ -458,7 +458,7 @@ uno::Type SAL_CALL OSection::getElementType( ) throw (uno::RuntimeException, st sal_Bool SAL_CALL OSection::hasElements( ) throw (uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard(m_aMutex); - return m_xDrawPage.is() ? m_xDrawPage->hasElements() : sal_False; + return m_xDrawPage.is() && m_xDrawPage->hasElements(); } // XIndexAccess diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index f3a6beacc7e2..b87c2c1e4b3c 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -2762,7 +2762,7 @@ uno::Any SAL_CALL OReportController::getViewData() throw( uno::RuntimeException, Any aCommandState; if ( !!aFeatureState.bChecked ) - aCommandState <<= (*aFeatureState.bChecked) ? sal_True : sal_False; + aCommandState <<= *aFeatureState.bChecked; else if ( aFeatureState.aValue.hasValue() ) aCommandState = aFeatureState.aValue; -- cgit