diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-17 16:25:12 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-22 09:27:44 +0100 |
commit | 21fdc2d06af7d8bfbdf7f7a97efb4fa13a55a179 (patch) | |
tree | cdaef770ffb5dc9cf8f44c525604edfaed0fc616 /src/shared/cplusplus/Parser.cpp | |
parent | 656de733abb38de501ef1415f7c52f569e62fab0 (diff) | |
download | qt-creator-21fdc2d06af7d8bfbdf7f7a97efb4fa13a55a179.tar.gz |
Replaced usages of concrete type SimpleNameAST with the abstract NameAST.
Diffstat (limited to 'src/shared/cplusplus/Parser.cpp')
-rw-r--r-- | src/shared/cplusplus/Parser.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp index 845fabcfe5..08ff9615d1 100644 --- a/src/shared/cplusplus/Parser.cpp +++ b/src/shared/cplusplus/Parser.cpp @@ -1792,8 +1792,9 @@ bool Parser::parseQtPropertyDeclaration(DeclarationAST *&node) if (LA() == T_LPAREN) { ast->lparen_token = consumeToken(); parseTypeId(ast->type_id); - ast->property_name = new (_pool) SimpleNameAST; - match(T_IDENTIFIER, &ast->property_name->identifier_token); + SimpleNameAST *property_name = new (_pool) SimpleNameAST; + match(T_IDENTIFIER, &property_name->identifier_token); + ast->property_name = property_name; QtPropertyDeclarationItemListAST **iter = &ast->property_declaration_items; while (true) { if (LA() == T_RPAREN) { @@ -5277,8 +5278,9 @@ bool Parser::parseObjCKeywordDeclaration(ObjCSelectorArgumentAST *&argument, Obj while (parseAttributeSpecifier(*attr)) attr = &(*attr)->next; - node->param_name = new (_pool) SimpleNameAST; - match(T_IDENTIFIER, &node->param_name->identifier_token); + SimpleNameAST *param_name = new (_pool) SimpleNameAST; + match(T_IDENTIFIER, ¶m_name->identifier_token); + node->param_name = param_name; return true; } |