summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckDeclarator.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-01-22 11:35:42 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-01-22 11:35:42 +0100
commit9de8f384ab343048e828a168e302bd163bbd58d4 (patch)
treeef4e4a725f9b4ee81c531bae05c1d255c1040260 /src/shared/cplusplus/CheckDeclarator.cpp
parentc73bf0041dd553ad38ce8bfc413c9d5c08eb585d (diff)
downloadqt-creator-9de8f384ab343048e828a168e302bd163bbd58d4.tar.gz
Removed duplicate null check.
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 d87b099790..afee09023b 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 && ast->selector->asObjCSelectorWithArguments()) {
+ if (ast->selector->asObjCSelectorWithArguments()) {
for (ObjCMessageArgumentDeclarationListAST *it = ast->argument_list; it; it = it->next) {
ObjCMessageArgumentDeclarationAST *argDecl = it->value;