Use refs
This commit is contained in:
parent
e2a81a382f
commit
38e1b57bc9
|
@ -2490,8 +2490,8 @@ struct SingleValueFlowForwardAnalyzer : ValueFlowForwardAnalyzer {
|
||||||
virtual bool isAlias(const Token* tok) const OVERRIDE {
|
virtual bool isAlias(const Token* tok) const OVERRIDE {
|
||||||
if (value.isLifetimeValue())
|
if (value.isLifetimeValue())
|
||||||
return false;
|
return false;
|
||||||
for(const auto& m:{getVars(), getAliasedVars()}) {
|
for(const auto& m:{std::ref(getVars()), std::ref(getAliasedVars())}) {
|
||||||
for (const auto& p:m) {
|
for (const auto& p:m.get()) {
|
||||||
nonneg int varid = p.first;
|
nonneg int varid = p.first;
|
||||||
const Variable* var = p.second;
|
const Variable* var = p.second;
|
||||||
if (tok->varId() == varid)
|
if (tok->varId() == varid)
|
||||||
|
|
Loading…
Reference in New Issue