summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckDeclarator.cpp
diff options
context:
space:
mode:
authorWolfgang Beck <wolfgang.beck@nokia.com>2010-02-03 13:21:08 +1000
committerWolfgang Beck <wolfgang.beck@nokia.com>2010-02-03 13:21:08 +1000
commite134e249196fdc86eb7a87a109e9772c9fed82a8 (patch)
tree614777bd1e0c2ee2193a721fb73d4e273bad5ff9 /src/shared/cplusplus/CheckDeclarator.cpp
parentcc278a593b829417ae210a8e21c49d1dade88b32 (diff)
downloadqt-creator-e134e249196fdc86eb7a87a109e9772c9fed82a8.tar.gz
Source update.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclarator.cpp')
-rw-r--r--src/shared/cplusplus/CheckDeclarator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/cplusplus/CheckDeclarator.cpp b/src/shared/cplusplus/CheckDeclarator.cpp
index afee09023b..d87b099790 100644
--- a/src/shared/cplusplus/CheckDeclarator.cpp
+++ b/src/shared/cplusplus/CheckDeclarator.cpp
@@ -272,7 +272,7 @@ bool CheckDeclarator::visit(ObjCMethodPrototypeAST *ast)
if (semantic()->isObjCClassMethod(tokenKind(ast->method_type_token)))
method->setStorage(Symbol::Static);
- if (ast->selector->asObjCSelectorWithArguments()) {
+ if (ast->selector && ast->selector->asObjCSelectorWithArguments()) {
for (ObjCMessageArgumentDeclarationListAST *it = ast->argument_list; it; it = it->next) {
ObjCMessageArgumentDeclarationAST *argDecl = it->value;