From 41b52249414ec8efe1042e2a1fe44e0e57a179da Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 28 Apr 2015 11:07:28 +0200 Subject: Fix Boolean expression Change-Id: Ic0042037847fa1ed277a23325a0bfcbab3b0900c --- reportdesign/source/core/api/Section.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx index 7ce500da3e25..0007774750ed 100644 --- a/reportdesign/source/core/api/Section.cxx +++ b/reportdesign/source/core/api/Section.cxx @@ -574,8 +574,7 @@ sal_Bool SAL_CALL OSection::hasForms() throw (uno::RuntimeException, std::except { // no lock because m_xDrawPage_FormSupplier is const return (m_xDrawPage_FormSupplier.is()) - ? m_xDrawPage_FormSupplier->hasForms() - : 0; + && m_xDrawPage_FormSupplier->hasForms(); } -- cgit v1.2.3