Skip to content

Commit

Permalink
Restore references
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 8, 2023
1 parent 09962a6 commit c334c6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4046,7 +4046,7 @@ struct LifetimeStore {
update = true;
}
if (update && forward)
forwardLifetime(tok, &tokenlist, errorLogger, settings);
forwardLifetime(tok, tokenlist, errorLogger, settings);
return update;
}

Expand Down Expand Up @@ -4141,7 +4141,7 @@ struct LifetimeStore {
}
}
if (update && forward)
forwardLifetime(tok, &tokenlist, errorLogger, settings);
forwardLifetime(tok, tokenlist, errorLogger, settings);
return update;
}

Expand Down Expand Up @@ -4218,14 +4218,14 @@ struct LifetimeStore {

private:
Context* mContext{};
void forwardLifetime(Token* tok, TokenList* tokenlist, ErrorLogger* errorLogger, const Settings* settings) const {
void forwardLifetime(Token* tok, TokenList& tokenlist, ErrorLogger* errorLogger, const Settings* settings) const {
if (mContext) {
mContext->tok = tok;
mContext->tokenlist = tokenlist;
mContext->tokenlist = &tokenlist;
mContext->errorLogger = errorLogger;
mContext->settings = settings;
}
valueFlowForwardLifetime(tok, *tokenlist, errorLogger, settings);
valueFlowForwardLifetime(tok, tokenlist, errorLogger, settings);
}
};

Expand Down

0 comments on commit c334c6c

Please sign in to comment.