From b08c1868bcfeda1bf4a9011283a4cdd4682f9c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 15 Jan 2018 22:03:23 +0100 Subject: [PATCH] Fixed Cppcheck warning --- lib/templatesimplifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 277b0db45..825cb78fc 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -1041,7 +1041,7 @@ void TemplateSimplifier::expandTemplate( } // replace name.. - if (tok3 && tok3->str() == lastName) { + if (tok3->str() == lastName) { if (Token::Match(tok3->tokAt(-2), "> :: %name% ( )")) { ; // Ticket #7942: Replacing for out-of-line constructors generates invalid syntax } else if (!Token::simpleMatch(tok3->next(), "<")) {