CheckClass: Use Variable::valueType() instead of Variable::typeStartToken

This commit is contained in:
Daniel Marjamäki 2018-06-24 15:41:16 +02:00
parent cb48aae594
commit 9fab15bb53
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ void CheckClass::constructors()
if (!var->isPointer() && if (!var->isPointer() &&
!(var->type() && var->type()->needInitialization != Type::True) && !(var->type() && var->type()->needInitialization != Type::True) &&
(func->type == Function::eCopyConstructor || func->type == Function::eOperatorEqual)) { (func->type == Function::eCopyConstructor || func->type == Function::eOperatorEqual)) {
if (!var->typeStartToken()->isStandardType()) { if (var->valueType()->type <= ValueType::Type::RECORD) {
if (printInconclusive) if (printInconclusive)
inconclusive = true; inconclusive = true;
else else