diff options
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/fehelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/idlc/source/fehelper.cxx b/idlc/source/fehelper.cxx index fdfd8388d657..02df3a824d71 100644 --- a/idlc/source/fehelper.cxx +++ b/idlc/source/fehelper.cxx @@ -50,7 +50,6 @@ sal_Bool FeDeclarator::checkType(AstDeclaration const * type) AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) { - AstArray* pArray; AstType* pType; if ( pDecl == 0 ) @@ -68,7 +67,7 @@ AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) if (m_pComplexPart->getNodeType() == NT_array) { - pArray = (AstArray*)m_pComplexPart; + AstArray* pArray = (AstArray*)m_pComplexPart; pArray->setType(pType); // insert array type in global scope @@ -80,6 +79,7 @@ AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) { delete m_pComplexPart; m_pComplexPart = pDecl2; + return (AstType*)pDecl2; } } return pArray; |