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

Julien Nabet serval2412 at yahoo.fr
Fri Mar 22 11:55:52 PDT 2013


 idlc/source/astunion.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 25363b4e4594c610c643cd1025119bb6188677d1
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Mar 22 19:53:41 2013 +0100

    coverity#440066 Logically dead code
    
    Change-Id: I54d1b22859bd4f0a1e68ce79ed2ce4d7fbeb5107

diff --git a/idlc/source/astunion.cxx b/idlc/source/astunion.cxx
index 20daa67..827dbbd 100644
--- a/idlc/source/astunion.cxx
+++ b/idlc/source/astunion.cxx
@@ -47,12 +47,6 @@ AstUnion::AstUnion(const ::rtl::OString& name, AstType* pDiscType, AstScope* pSc
     if ( pDiscType->getNodeType() == NT_predefined )
     {
         pBaseType = (AstBaseType*)pDiscType;
-        if ( !pBaseType )
-        {
-            m_pDiscriminantType = NULL;
-            m_discExprType = ET_none;
-            return;
-        }
         m_pDiscriminantType = pDiscType;
         switch (pBaseType->getExprType())
         {


More information about the Libreoffice-commits mailing list