diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-14 15:54:14 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-14 15:47:48 +0200 |
commit | 6154489314d2f2bf9cb99b72f15c79dd48a1da14 (patch) | |
tree | d9bbbc2e0233d417555109206bdb2d298ce838ac /svtools | |
parent | eb772683513f4f2b6c8e6404c29b8e477ffc7fad (diff) |
tdf#120703 PVS: V581 ifs with identical conditions
V581 The conditional expressions of the 'if' statements situated
alongside each other are identical.
Change-Id: I18562d60e33c7ecff14807976dde4cbcae3f665b
Reviewed-on: https://gerrit.libreoffice.org/70731
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index a27e6ad64d6f..c07ed5b13756 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -2767,10 +2767,9 @@ void SvxIconChoiceCtrl_Impl::SetEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry } else if( !nPos1 ) return; - } - if( !pHead ) InitPredecessors(); + } if( !pPredecessor && pHead == pEntry ) return; // is already the first one |