diff options
Diffstat (limited to 'idlc/source/fehelper.cxx')
-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 12636e1ef6a6..a11f4b053992 100644 --- a/idlc/source/fehelper.cxx +++ b/idlc/source/fehelper.cxx @@ -49,7 +49,7 @@ bool FeDeclarator::checkType(AstDeclaration const * type) AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) { - AstType* pType; + const AstType* pType; if ( pDecl == 0 ) { @@ -60,7 +60,7 @@ AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) idlc()->error()->noTypeError(pDecl); return NULL; } - pType = (AstType*)pDecl; + pType = static_cast<const AstType*>(pDecl); if (m_declType == FD_simple || m_pComplexPart == NULL) return pType; |