diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-06 10:19:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-06 11:53:58 +0100 |
commit | 004cc81168ce4e9f9b2f8fddf3361f8c23323673 (patch) | |
tree | 16c7009a3fac88766214ff073cab5562555a2f3a /idlc | |
parent | 2429c626b4ae5efcd2edf47dabf4add6a7384dff (diff) |
loplugin:collapseif in dbaccess..lotuswordpro
Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662
Reviewed-on: https://gerrit.libreoffice.org/62934
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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); } } |