diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-06 11:05:43 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-07 10:49:03 +0100 |
commit | 8d8b05da5a93bcd8f45a2d1b796ff1e4b1102ff5 (patch) | |
tree | 4aa3c52c3c3d428ccb2da1a68ad54ce698b7a282 /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 6ca5f5f5f886449f88d1ff7085f640c46bbc8fb2 (diff) | |
download | qt-creator-8d8b05da5a93bcd8f45a2d1b796ff1e4b1102ff5.tar.gz |
Reworked parts of the QtPropertyDeclaration parsing and handling.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 54e457aacc..7a6e07ce97 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -556,7 +556,7 @@ bool CheckDeclaration::visit(ObjCProtocolForwardDeclarationAST *ast) const unsigned sourceLocation = ast->firstToken(); List<ObjCForwardProtocolDeclaration *> **symbolIter = &ast->symbols; - for (ObjCIdentifierListAST *it = ast->identifier_list; it; it = it->next) { + for (NameListAST *it = ast->identifier_list; it; it = it->next) { unsigned declarationLocation; if (it->value) declarationLocation = it->value->firstToken(); @@ -592,7 +592,7 @@ bool CheckDeclaration::visit(ObjCProtocolDeclarationAST *ast) protocol->setEndOffset(tokenAt(ast->lastToken()).offset); if (ast->protocol_refs && ast->protocol_refs->identifier_list) { - for (ObjCIdentifierListAST *iter = ast->protocol_refs->identifier_list; iter; iter = iter->next) { + for (NameListAST *iter = ast->protocol_refs->identifier_list; iter; iter = iter->next) { NameAST* name = iter->value; const Name *protocolName = semantic()->check(name, _scope); ObjCBaseProtocol *baseProtocol = control()->newObjCBaseProtocol(name->firstToken(), protocolName); @@ -617,7 +617,7 @@ bool CheckDeclaration::visit(ObjCClassForwardDeclarationAST *ast) const unsigned sourceLocation = ast->firstToken(); List<ObjCForwardClassDeclaration *> **symbolIter = &ast->symbols; - for (ObjCIdentifierListAST *it = ast->identifier_list; it; it = it->next) { + for (NameListAST *it = ast->identifier_list; it; it = it->next) { unsigned declarationLocation; if (it->value) declarationLocation = it->value->firstToken(); @@ -667,7 +667,7 @@ bool CheckDeclaration::visit(ObjCClassDeclarationAST *ast) } if (ast->protocol_refs && ast->protocol_refs->identifier_list) { - for (ObjCIdentifierListAST *iter = ast->protocol_refs->identifier_list; iter; iter = iter->next) { + for (NameListAST *iter = ast->protocol_refs->identifier_list; iter; iter = iter->next) { NameAST* name = iter->value; const Name *protocolName = semantic()->check(name, _scope); ObjCBaseProtocol *baseProtocol = control()->newObjCBaseProtocol(name->firstToken(), protocolName); |