diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 13:13:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 19:43:11 +0200 |
commit | 52c2cf22aa78ee886ee447a2629332e1e6f6c611 (patch) | |
tree | 9b91680232117080901a968a90d6bb33c2becda9 /sw/source/filter/ww8/ww8par5.cxx | |
parent | b81432a23c900329ece07854fd06a322225a97c1 (diff) |
loplugin:simplifybool in sw
Change-Id: Ib842d5a768806fc41a66802908acc8679cf7a985
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95107
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8par5.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 3b4ed85e97e2..25eb28a85c15 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -965,7 +965,7 @@ long SwWW8ImplReader::Read_Field(WW8PLCFManResult* pRes) if ( nSpacePos<0 ) nSpacePos = aStr.getLength(); - if ( !( aStr.getLength()>1 && aStr[1]=='=') && + if ( ( aStr.getLength() <= 1 || aStr[1] != '=') && (( nDotPos>=0 && nDotPos < nSpacePos ) || ( nSlashPos>=0 && nSlashPos < nSpacePos ))) return aF.nLen; |