Kaydet (Commit) b0494019 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: Ia11e61456f6d915aab9da798ce4a2f89e82c189d
üst aa8f7902
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment