From 439d4a4900d1ca79fe7f8357bc260d51a7d73205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 20 Jun 2018 19:08:09 +0200 Subject: [PATCH] Use Variable::valueType() instead of Variable::typeStartToken() --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index e9f19776b..8104a7b00 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1097,7 +1097,7 @@ void CheckOther::checkVariableScope() const SymbolDatabase *symbolDatabase = mTokenizer->getSymbolDatabase(); for (const Variable* var : symbolDatabase->variableList()) { - if (!var || !var->isLocal() || (!var->isPointer() && !var->typeStartToken()->isStandardType())) + if (!var || !var->isLocal() || (!var->isPointer() && var->valueType()->type <= ValueType::Type::RECORD)) continue; if (var->isConst())