Fix bug. Used wrong ValueType in smart pointer handling

This commit is contained in:
Daniel Marjamäki 2019-07-13 20:29:15 +02:00
parent 5d853bcb58
commit e489d9a40f
1 changed files with 1 additions and 1 deletions

View File

@ -4952,7 +4952,7 @@ void SymbolDatabase::setValueType(Token *tok, const ValueType &valuetype)
}
if (vt1 && vt1->smartPointerType && Token::Match(parent, ". %name% (") && parent->originalName() == "->" && !parent->next()->function()) {
const Scope *scope = valuetype.smartPointerType->classScope;
const Scope *scope = vt1->smartPointerType->classScope;
const Function *f = scope ? scope->findFunction(parent->next(), false) : nullptr;
if (f)
parent->next()->function(f);