diff options
-rw-r--r-- | idlc/source/astscope.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx index c57d14c65560..e7f030e759ed 100644 --- a/idlc/source/astscope.cxx +++ b/idlc/source/astscope.cxx @@ -179,7 +179,7 @@ AstDeclaration* AstScope::lookupByName(const OString& scopedName) { // last try if is not the global scope and the scopeName isn't specify global too pDecl = scopeAsDecl(this); - if ( pDecl && (pDecl->getLocalName() != "") ) + if ( pDecl && !pDecl->getLocalName().isEmpty() ) { pScope = pDecl->getScope(); if ( pScope ) |