summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/Section.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx2
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;