From c79f25d5a6b9aa645c0068db07b389ce615948b1 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 16 Feb 2010 16:54:39 +0100 Subject: Fixed Q_PROPERTY parsing to handle all possible cases. --- src/shared/cplusplus/ASTMatch0.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src/shared/cplusplus/ASTMatch0.cpp') 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; -- cgit v1.2.1