summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-15 12:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 07:15:57 +0100
commitaa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a (patch)
treec69ad9f8591f69749699ddd7c108238820532eb3 /sw
parent9712dd74bfb0c9b99cab37bd147fe267b48c6d7d (diff)
loplugin:simplifybool, check for !(!a op !b)
Change-Id: Ic3ee9c05705817580633506498f848aac3ab7ba6 Reviewed-on: https://gerrit.libreoffice.org/67866 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/basflt/shellio.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index b66cb249ba22..1c0d473cbd4c 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -644,7 +644,7 @@ bool SwReader::HasGlossaries( const Reader& rOptions )
// if a Medium is selected, get its Stream
bool bRet = false;
- if( !( nullptr != (po->m_pMedium = pMedium ) && !po->SetStrmStgPtr() ))
+ if( nullptr == (po->m_pMedium = pMedium ) || po->SetStrmStgPtr() )
bRet = po->HasGlossaries();
return bRet;
}
@@ -660,7 +660,7 @@ bool SwReader::ReadGlossaries( const Reader& rOptions,
// if a Medium is selected, get its Stream
bool bRet = false;
- if( !( nullptr != (po->m_pMedium = pMedium ) && !po->SetStrmStgPtr() ))
+ if( nullptr == (po->m_pMedium = pMedium ) || po->SetStrmStgPtr() )
bRet = po->ReadGlossaries( rBlocks, bSaveRelFiles );
return bRet;
}