Minor refactoring, fixes FP from Coverity

This commit is contained in:
Daniel Marjamäki 2017-08-01 11:33:24 +02:00
parent 6cc7f46696
commit be998773ee
1 changed files with 1 additions and 1 deletions

View File

@ -1604,7 +1604,7 @@ bool Token::addValue(const ValueFlow::Value &value)
}
// Add value
if (it == values().end()) {
if (it == _values->end()) {
ValueFlow::Value v(value);
if (v.varId == 0)
v.varId = _varId;