Remove duplicated method call
This commit is contained in:
parent
f28524fefa
commit
0fe82335ac
|
@ -4986,9 +4986,9 @@ static const Token * parsedecl(const Token *type, ValueType * const valuetype, V
|
||||||
} else if (ValueType::Type::UNKNOWN_TYPE != ValueType::typeFromString(type->str(), type->isLong()))
|
} else if (ValueType::Type::UNKNOWN_TYPE != ValueType::typeFromString(type->str(), type->isLong()))
|
||||||
valuetype->type = ValueType::typeFromString(type->str(), type->isLong());
|
valuetype->type = ValueType::typeFromString(type->str(), type->isLong());
|
||||||
else if (type->str() == "auto") {
|
else if (type->str() == "auto") {
|
||||||
if (!type->valueType())
|
|
||||||
return nullptr;
|
|
||||||
const ValueType *vt = type->valueType();
|
const ValueType *vt = type->valueType();
|
||||||
|
if (!vt)
|
||||||
|
return nullptr;
|
||||||
valuetype->type = vt->type;
|
valuetype->type = vt->type;
|
||||||
valuetype->pointer = vt->pointer;
|
valuetype->pointer = vt->pointer;
|
||||||
if (vt->sign != ValueType::Sign::UNKNOWN_SIGN)
|
if (vt->sign != ValueType::Sign::UNKNOWN_SIGN)
|
||||||
|
|
Loading…
Reference in New Issue