diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-15 12:56:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-18 07:15:57 +0100 |
commit | aa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a (patch) | |
tree | c69ad9f8591f69749699ddd7c108238820532eb3 /svtools | |
parent | 9712dd74bfb0c9b99cab37bd147fe267b48c6d7d (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 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 064f923e425a..c8d689c1a729 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -1979,8 +1979,7 @@ void SvxIconChoiceCtrl_Impl::Command( const CommandEvent& rCEvt ) void SvxIconChoiceCtrl_Impl::ToTop( SvxIconChoiceCtrlEntry* pEntry ) { - if( !(!maZOrderList.empty() - && pEntry != maZOrderList.back())) + if( maZOrderList.empty() || pEntry == maZOrderList.back()) return; auto it = std::find(maZOrderList.begin(), maZOrderList.end(), pEntry); @@ -2698,7 +2697,7 @@ void SvxIconChoiceCtrl_Impl::InitSettings() pView->SetBackground( rStyleSettings.GetFieldColor()); long nScrBarSize = rStyleSettings.GetScrollBarSize(); - if( !(nScrBarSize != nHorSBarHeight || nScrBarSize != nVerSBarWidth) ) + if( nScrBarSize == nHorSBarHeight && nScrBarSize == nVerSBarWidth ) return; nHorSBarHeight = nScrBarSize; |