diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:53:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:19 +0200 |
commit | b0494019dfb9224c8f0e83f55f4dbd639fe4fc78 (patch) | |
tree | 07bbc5092e190b5e1d5fb4062ed72a112fad1381 | |
parent | aa8f7902d45dfe094d1ddbae01736c1e182b265e (diff) |
loplugin:simplifybool
Change-Id: Ia11e61456f6d915aab9da798ce4a2f89e82c189d
-rw-r--r-- | reportdesign/source/core/api/Section.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/report/ReportController.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; |