forked from qt-creator/qt-creator
Fixes: Implementation of NewExpressionAST::lastToken()
This commit is contained in:
@@ -1178,7 +1178,7 @@ unsigned DeclaratorListAST::lastToken() const
|
|||||||
{
|
{
|
||||||
for (const DeclaratorListAST *it = this; it; it = it->next) {
|
for (const DeclaratorListAST *it = this; it; it = it->next) {
|
||||||
if (! it->next)
|
if (! it->next)
|
||||||
return it->lastToken();
|
return it->declarator->lastToken();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user