[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 22 20:59:20 UTC 2018


 sw/source/ui/chrdlg/swuiccoll.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit b6aa70dc67983eac812e6f4a67b2b4f08de79fbb
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Nov 22 15:33:19 2018 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Nov 22 21:58:51 2018 +0100

    coverity#1441484 Logically dead code
    
    Change-Id: I42a97ccb5cae95f57a03faf210af362a2874fcb1
    Reviewed-on: https://gerrit.libreoffice.org/63809
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/ui/chrdlg/swuiccoll.cxx b/sw/source/ui/chrdlg/swuiccoll.cxx
index 16fa6e1761db..b79c721ba593 100644
--- a/sw/source/ui/chrdlg/swuiccoll.cxx
+++ b/sw/source/ui/chrdlg/swuiccoll.cxx
@@ -243,8 +243,7 @@ void SwCondCollPage::SelectHdl(const weld::Widget* pBox)
             }
             pBase = pPool->Next();
         }
-        if (!bEmpty)
-            m_xStyleLB->select(bEmpty ? -1 : 0);
+        m_xStyleLB->select(bEmpty ? -1 : 0);
         SelectHdl(m_xStyleLB.get());
     }
     else


More information about the Libreoffice-commits mailing list