loplugin:simplifybool
Change-Id: I06df26c474689126f80236866bd547332e293969
This commit is contained in:
@@ -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()
|
||||
|
@@ -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))));
|
||||
|
Reference in New Issue
Block a user