Restore references (#5303)
This commit is contained in:
parent
09962a6bcf
commit
47c9a941a0
|
@ -4046,7 +4046,7 @@ struct LifetimeStore {
|
||||||
update = true;
|
update = true;
|
||||||
}
|
}
|
||||||
if (update && forward)
|
if (update && forward)
|
||||||
forwardLifetime(tok, &tokenlist, errorLogger, settings);
|
forwardLifetime(tok, tokenlist, errorLogger, settings);
|
||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4141,7 +4141,7 @@ struct LifetimeStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (update && forward)
|
if (update && forward)
|
||||||
forwardLifetime(tok, &tokenlist, errorLogger, settings);
|
forwardLifetime(tok, tokenlist, errorLogger, settings);
|
||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4218,14 +4218,14 @@ struct LifetimeStore {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Context* mContext{};
|
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) {
|
if (mContext) {
|
||||||
mContext->tok = tok;
|
mContext->tok = tok;
|
||||||
mContext->tokenlist = tokenlist;
|
mContext->tokenlist = &tokenlist;
|
||||||
mContext->errorLogger = errorLogger;
|
mContext->errorLogger = errorLogger;
|
||||||
mContext->settings = settings;
|
mContext->settings = settings;
|
||||||
}
|
}
|
||||||
valueFlowForwardLifetime(tok, *tokenlist, errorLogger, settings);
|
valueFlowForwardLifetime(tok, tokenlist, errorLogger, settings);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue