diff options
Diffstat (limited to 'idlc/source/errorhandler.cxx')
-rw-r--r-- | idlc/source/errorhandler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx index 6a99b669e72f..b7b6e799be3a 100644 --- a/idlc/source/errorhandler.cxx +++ b/idlc/source/errorhandler.cxx @@ -564,7 +564,7 @@ void ErrorHandler::inheritanceError(NodeType nodeType, const OString* name, AstD { if ( nodeType == NT_interface && (pDecl->getNodeType() == NT_interface) && - !((AstInterface*)pDecl)->isDefined() ) + !(static_cast<AstInterface*>(pDecl)->isDefined()) ) { errorHeader(EIDL_INHERIT_FWD_ERROR); fprintf(stderr, "interface '%s' cannot inherit from forward declared interface '%s'\n", @@ -579,7 +579,7 @@ void ErrorHandler::inheritanceError(NodeType nodeType, const OString* name, AstD idlc()->incErrorCount(); } -void ErrorHandler::forwardLookupError(AstDeclaration* pForward, +void ErrorHandler::forwardLookupError(const AstDeclaration* pForward, const OString& name) { errorHeader(EIDL_FWD_DECL_LOOKUP); |