The method finish() of a list-like node will convert the circular
list to a single-list. The right way to iterate is by looking
at the member `next' and by invokign finish().
Change-Id: I85a45b691a6c7089cd1a765871a11a7c60c3cdff
Reviewed-on: http://codereview.qt.nokia.com/3780
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
AST::UiParameterList *p = node->parameters;
int paramLength = 0;
- while (p) { paramLength++; p = p->finish(); }
+ while (p) { paramLength++; p = p->next; }
p = node->parameters;
if (paramLength) {
signal->parameterTypes[index] = QHashedCStringRef(type->qtName, type->qtNameLength);
signal->parameterNames[index] = QHashedStringRef(p->name);
- p = p->finish();
+ p = p->next;
index++;
}
AST::FormalParameterList *f = funDecl->formals;
while (f) {
slot->parameterNames << f->name.toUtf8();
- f = f->finish();
+ f = f->next;
}
AST::SourceLocation loc = funDecl->rparenToken;