summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-16 13:58:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-16 14:00:24 +0200
commit89e33144731aacdb03fb8a82b6283c0effca8a3b (patch)
treef5600cb204b508dcb4c477a1f5a615ed2354371f /xmloff
parent8f12dcbf606e0ec73fe87df5c696682e792a7605 (diff)
loplugin:simplifybool
Change-Id: I06df26c474689126f80236866bd547332e293969
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximppage.cxx2
-rw-r--r--xmloff/source/style/impastpl.cxx2
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))));