loplugin:simplifybool

Change-Id: I06df26c474689126f80236866bd547332e293969
This commit is contained in:
Stephan Bergmann
2015-07-16 13:58:27 +02:00
parent 8f12dcbf60
commit 89e3314473
2 changed files with 2 additions and 2 deletions

View File

@@ -577,7 +577,7 @@ Type SAL_CALL XoNavigationOrderAccess::getElementType( ) throw (RuntimeExceptio
sal_Bool SAL_CALL XoNavigationOrderAccess::hasElements( ) throw (RuntimeException, std::exception)
{
return maShapes.empty() ? sal_False : sal_True;
return !maShapes.empty();
}
void SdXMLGenericPageContext::SetNavigationOrder()

View File

@@ -106,7 +106,7 @@ data2string(void *data,
case typelib_TypeClass_VOID:
break;
case typelib_TypeClass_BOOLEAN:
result.append((*static_cast<const sal_Bool*>(data) == sal_False ) ? OUString("false") : OUString("true"));
result.append(*static_cast<const sal_Bool*>(data) ? OUString("true") : OUString("false"));
break;
case typelib_TypeClass_BYTE:
result.append(OUString::number((*static_cast<const sal_Int8*>(data))));