From 0b980537906ede57b632d138017b265698123a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 17 Dec 2020 15:29:15 +0100 Subject: [PATCH] Fixed Cppcheck warning; Redundant assignment --- lib/exprengine.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 7850d7269..7982bfd9c 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -2121,8 +2121,6 @@ static ExprEngine::ValuePtr executeCast(const Token *tok, Data &data) if (!tok->valueType() || expr->valueType()->pointer < tok->valueType()->pointer) return std::make_shared(); - ::ValueType vt(*tok->valueType()); - vt.pointer = 0; auto range = std::make_shared(); if (tok->valueType()->pointer == 0)