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

loplugin:simplifybool

Change-Id: I06df26c474689126f80236866bd547332e293969
üst 8f12dcbf
......@@ -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))));
......
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