C++: Fix Bind run on QtPropertyDeclarationAST.

Also adjust findusages test to account for QtProperty symbol.

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2011-02-07 12:17:20 +01:00
parent 0824a12879
commit dc1f1cc310
2 changed files with 4 additions and 2 deletions

View File

@@ -1892,6 +1892,8 @@ bool Bind::visit(QtPropertyDeclarationAST *ast)
for (QtPropertyDeclarationItemListAST *it = ast->property_declaration_item_list; it; it = it->next) {
if (!it->value || !it->value->item_name_token)
continue;
this->expression(it->value->expression);
std::string name = spell(it->value->item_name_token);
if (name == "CONSTANT") {