diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 13:58:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-16 14:00:24 +0200 |
commit | 89e33144731aacdb03fb8a82b6283c0effca8a3b (patch) | |
tree | f5600cb204b508dcb4c477a1f5a615ed2354371f /xmloff | |
parent | 8f12dcbf606e0ec73fe87df5c696682e792a7605 (diff) |
loplugin:simplifybool
Change-Id: I06df26c474689126f80236866bd547332e293969
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximppage.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/impastpl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx index 3be50c614ebe..14c816d30ce4 100644 --- a/xmloff/source/draw/ximppage.cxx +++ b/xmloff/source/draw/ximppage.cxx @@ -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() diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx index a2a34ff7a824..0bc2d51299ef 100644 --- a/xmloff/source/style/impastpl.cxx +++ b/xmloff/source/style/impastpl.cxx @@ -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)))); |