summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/ASTMatch0.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-02-16 16:54:39 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-02-16 17:04:26 +0100
commitc79f25d5a6b9aa645c0068db07b389ce615948b1 (patch)
tree8accd82448284736df0d3ca99422c79b8cbe7926 /src/shared/cplusplus/ASTMatch0.cpp
parent8c2928e12e3d83af16e1eeec97b3829ce653b47d (diff)
downloadqt-creator-c79f25d5a6b9aa645c0068db07b389ce615948b1.tar.gz
Fixed Q_PROPERTY parsing to handle all possible cases.
Diffstat (limited to 'src/shared/cplusplus/ASTMatch0.cpp')
-rw-r--r--src/shared/cplusplus/ASTMatch0.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/shared/cplusplus/ASTMatch0.cpp b/src/shared/cplusplus/ASTMatch0.cpp
index a2fcf8e0b9..8ffc5e6cbd 100644
--- a/src/shared/cplusplus/ASTMatch0.cpp
+++ b/src/shared/cplusplus/ASTMatch0.cpp
@@ -105,25 +105,9 @@ bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
return false;
}
-bool QtPropertyDeclarationNamingItemAST::match0(AST *pattern, ASTMatcher *matcher)
+bool QtPropertyDeclarationItemAST::match0(AST *pattern, ASTMatcher *matcher)
{
- if (QtPropertyDeclarationNamingItemAST *_other = pattern->asQtPropertyDeclarationNamingItem())
- return matcher->match(this, _other);
-
- return false;
-}
-
-bool QtPropertyDeclarationBoolItemAST::match0(AST *pattern, ASTMatcher *matcher)
-{
- if (QtPropertyDeclarationBoolItemAST *_other = pattern->asQtPropertyDeclarationBoolItem())
- return matcher->match(this, _other);
-
- return false;
-}
-
-bool QtPropertyDeclarationFlaggingItemAST::match0(AST *pattern, ASTMatcher *matcher)
-{
- if (QtPropertyDeclarationFlaggingItemAST *_other = pattern->asQtPropertyDeclarationFlaggingItem())
+ if (QtPropertyDeclarationItemAST *_other = pattern->asQtPropertyDeclarationItem())
return matcher->match(this, _other);
return false;