Clang import: Use getChild

This commit is contained in:
Daniel Marjamäki 2021-01-01 17:59:28 +01:00
parent abb19875b3
commit 4e4db50311
1 changed files with 1 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ Token * clangimport::AstNode::createTokensCall(TokenList *tokenList)
Token *f;
if (nodeType == CXXOperatorCallExpr) {
firstParam = 2;
Token *obj = children[1]->createTokens(tokenList);
Token *obj = getChild(1)->createTokens(tokenList);
Token *dot = addtoken(tokenList, ".");
Token *op = getChild(0)->createTokens(tokenList);
dot->astOperand1(obj);