Skip to content

Commit a32896b

Browse files
Format
1 parent 9de5bdd commit a32896b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎lib/checkother.cpp‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,20 +1823,19 @@ void CheckOtherImpl::checkConstVariable()
18231823
if (tok->str() == "&")
18241824
return ChildrenToVisit::op1;
18251825
if (tok->str() == "?")
1826-
return ChildrenToVisit::op2;
1826+
return ChildrenToVisit::op2;
18271827
if (tok->str() == ":")
1828-
return ChildrenToVisit::op1_and_op2;
1828+
return ChildrenToVisit::op1_and_op2;
18291829

18301830
ValueFlow::Value ltVal = ValueFlow::getLifetimeObjValue(tok);
1831-
if ((ltVal.isLifetimeValue() && ltVal.tokvalue->varId() == var->declarationId()) ||
1831+
if ((ltVal.isLifetimeValue() && ltVal.tokvalue->varId() == var->declarationId()) ||
18321832
ValueFlow::hasLifetimeToken(getParentLifetime(tok), var->nameToken(), mSettings)) {
18331833
result = true;
18341834
return ChildrenToVisit::done;
18351835
}
18361836
return ChildrenToVisit::none;
1837-
});
1837+
});
18381838
return result;
1839-
18401839
}))
18411840
continue;
18421841
}

0 commit comments

Comments
 (0)