diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-12-29 18:26:01 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-01-06 17:39:35 +0100 |
commit | eb1baa9e2e445bbc108b7a8a16d340707923041f (patch) | |
tree | 7581c1b0622d8a8cd4984774b86ede0176fecdfa /src/shared/cplusplus/CheckDeclaration.cpp | |
parent | 5723682b218b1de51a966df269c3ccefd9dfcb22 (diff) | |
download | qt-creator-eb1baa9e2e445bbc108b7a8a16d340707923041f.tar.gz |
Fix to selector parameter position.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckDeclaration.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp index 719a0c82eb..9758f306a2 100644 --- a/src/shared/cplusplus/CheckDeclaration.cpp +++ b/src/shared/cplusplus/CheckDeclaration.cpp @@ -666,22 +666,22 @@ bool CheckDeclaration::visit(ObjCMethodDeclarationAST *ast) return false; FullySpecifiedType ty = semantic()->check(ast->method_prototype, _scope); - ObjCMethod *methodType = ty.type()->asObjCMethodType(); - if (!methodType) + ObjCMethod *methodTy = ty.type()->asObjCMethodType(); + if (!methodTy) return false; Symbol *symbol; if (ast->function_body) { if (!semantic()->skipFunctionBodies()) { - semantic()->check(ast->function_body, methodType->members()); + semantic()->check(ast->function_body, methodTy->members()); } - symbol = methodType; + symbol = methodTy; } else { - Declaration *decl = control()->newDeclaration(ast->firstToken(), methodType->name()); - decl->setType(methodType); + Declaration *decl = control()->newDeclaration(ast->firstToken(), methodTy->name()); + decl->setType(methodTy); symbol = decl; - symbol->setStorage(methodType->storage()); + symbol->setStorage(methodTy->storage()); } symbol->setStartOffset(tokenAt(ast->firstToken()).offset); |