diff options
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/astscope.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx index 5ab066c2ec5f..a8b8a159bde0 100644 --- a/idlc/source/astscope.cxx +++ b/idlc/source/astscope.cxx @@ -150,11 +150,8 @@ AstDeclaration* AstScope::lookupByName(const OString& scopedName) // Special case for scope which is an interface. We // have to look in the inherited interfaces as well. - if ( !pDecl ) - { - if (m_nodeType == NT_interface) - pDecl = lookupInInherited(scopedName); - } + if ( !pDecl && m_nodeType == NT_interface ) + pDecl = lookupInInherited(scopedName); } } |