diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 09:33:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 06:59:31 +0100 |
commit | 7a1c21e53fc4733a4bb52282ce0098fcc085ab0e (patch) | |
tree | c1b90f74e1ce9e9f3a852f398890899459189cab /sd/source | |
parent | c24c32bf71b8e64bd0d36e511f554e1f6c015842 (diff) |
loplugin:simplifybool for negation of comparison operator
Change-Id: Ie56daf560185274754afbc7a09c432b5c2793791
Reviewed-on: https://gerrit.libreoffice.org/45068
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterTextView.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 8faee745019e..7667c66db132 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -439,7 +439,7 @@ void SdPageObjsTLB::Fill( const SdDrawDocument* pInDoc, bool bAllPages, { const SdPage* pPage = static_cast<const SdPage*>( mpDoc->GetPage( nPage ) ); if( (mbShowAllPages || pPage->GetPageKind() == PageKind::Standard) - && !(pPage->GetPageKind()==PageKind::Handout) ) //#94954# never list the normal handout page ( handout-masterpage is used instead ) + && (pPage->GetPageKind() != PageKind::Handout) ) //#94954# never list the normal handout page ( handout-masterpage is used instead ) { bool bPageExluded = pPage->IsExcluded(); diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx index 4b8494078a5a..e03e9e4bcc55 100644 --- a/sd/source/ui/presenter/PresenterTextView.cxx +++ b/sd/source/ui/presenter/PresenterTextView.cxx @@ -117,7 +117,7 @@ void SAL_CALL PresenterTextView::initialize (const Sequence<Any>& rArguments) { ThrowIfDisposed(); - if (!(rArguments.getLength() == 1)) + if (rArguments.getLength() != 1) { throw RuntimeException("PresenterTextView: invalid number of arguments", static_cast<XWeak*>(this)); |