From 9fab15bb53b3c7f84965388b399719b7aa0d07cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 24 Jun 2018 15:41:16 +0200 Subject: [PATCH] CheckClass: Use Variable::valueType() instead of Variable::typeStartToken --- lib/checkclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index ee19e02c1..e604c1963 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -188,7 +188,7 @@ void CheckClass::constructors() if (!var->isPointer() && !(var->type() && var->type()->needInitialization != Type::True) && (func->type == Function::eCopyConstructor || func->type == Function::eOperatorEqual)) { - if (!var->typeStartToken()->isStandardType()) { + if (var->valueType()->type <= ValueType::Type::RECORD) { if (printInconclusive) inconclusive = true; else