summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par6.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:29 +0200
commit746a717ed4648cd6c0d0d810a90a6539373b130c (patch)
treea1a2b3a3df4f968ccc98423a5b163d4b366b4c16 /sw/source/filter/ww8/ww8par6.cxx
parent24df2bd5cb68f8de5e22a27f6a3505d099bc3581 (diff)
loplugin:simplifybool
Change-Id: Ic90d247e6c8e36e27ff444ace10fd37e06d46b50
Diffstat (limited to 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index d107eba7d69c..f4781a79068a 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -917,7 +917,7 @@ void wwSectionManager::CreateSep(const long nTxtPos, bool /*bMustHaveBreak*/)
{
// sprmSFEvenlySpaced
aNewSection.maSep.fEvenlySpaced =
- sal_uInt8(ReadBSprm(pSep, (eVer <= ww::eWW7 ? 138 : 0x3005), 1) ? true : false);
+ sal_uInt8(ReadBSprm(pSep, (eVer <= ww::eWW7 ? 138 : 0x3005), 1) != 0);
if (aNewSection.maSep.ccolM1 > 0 && !aNewSection.maSep.fEvenlySpaced)
{
@@ -4298,7 +4298,7 @@ bool SwWW8ImplReader::IsRightToLeft()
const sal_uInt8 *pDir =
pPlcxMan ? pPlcxMan->GetPapPLCF()->HasSprm(0x2441) : 0;
if (pDir)
- bRTL = *pDir ? true : false;
+ bRTL = *pDir != 0;
else
{
const SvxFrameDirectionItem* pItem=