summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckName.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-06-18 09:08:00 +0200
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-06-18 09:10:11 +0200
commit3c3af9c25b6e57dfc8c28a07679b90f902759a1a (patch)
tree09f637e73c510a3ba57a7aa4b9437a58573a61e7 /src/shared/cplusplus/CheckName.cpp
parenta1a565b9c55b563460be0d5ca7aef6deb93e0ed1 (diff)
downloadqt-creator-3c3af9c25b6e57dfc8c28a07679b90f902759a1a.tar.gz
Fixed return-type checking for ObjC methods.
Diffstat (limited to 'src/shared/cplusplus/CheckName.cpp')
-rw-r--r--src/shared/cplusplus/CheckName.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/cplusplus/CheckName.cpp b/src/shared/cplusplus/CheckName.cpp
index d98c9b9610..4105268f93 100644
--- a/src/shared/cplusplus/CheckName.cpp
+++ b/src/shared/cplusplus/CheckName.cpp
@@ -394,8 +394,8 @@ bool CheckName::visit(ObjCMessageArgumentDeclarationAST *ast)
{
FullySpecifiedType type;
- if (ast->type_name)
- type = semantic()->check(ast->type_name, _scope);
+ if (ast->type_name && ast->type_name->type_id)
+ type = semantic()->check(ast->type_name->type_id, _scope);
if (ast->param_name) {
accept(ast->param_name);