diff options
Diffstat (limited to 'src/libs/cplusplus/CheckUndefinedSymbols.cpp')
-rw-r--r-- | src/libs/cplusplus/CheckUndefinedSymbols.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/cplusplus/CheckUndefinedSymbols.cpp b/src/libs/cplusplus/CheckUndefinedSymbols.cpp index 30a08ea884..9368aa43fa 100644 --- a/src/libs/cplusplus/CheckUndefinedSymbols.cpp +++ b/src/libs/cplusplus/CheckUndefinedSymbols.cpp @@ -498,8 +498,8 @@ bool CheckUndefinedSymbols::visit(ObjCClassDeclarationAST *ast) bool CheckUndefinedSymbols::visit(ObjCProtocolRefsAST *ast) { - for (IdentifierListAST *iter = ast->identifier_list; iter; iter = iter->next) { - if (NameAST *nameAST = iter->name) { + for (ObjCIdentifierListAST *iter = ast->identifier_list; iter; iter = iter->next) { + if (NameAST *nameAST = iter->value) { bool resolvedProtocolName = false; if (Name *name = nameAST->name) { |