From 70817b3d4e8bc5b41ef7c0748a9268a8888ec866 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 1 Jan 2018 03:06:17 +0300 Subject: [PATCH] Remove redundant check --- lib/templatesimplifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 68a442d17..58917d101 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -477,7 +477,7 @@ std::list TemplateSimplifier::getTemplateDecla if (!tok->tokAt(2)) syntaxError(tok->next()); if (tok->strAt(2)=="typename" && - (!tok->tokAt(3) || !Token::Match(tok->tokAt(3), "%name%|.|,|>"))) + !Token::Match(tok->tokAt(3), "%name%|.|,|>")) syntaxError(tok->next()); codeWithTemplates = true; Token *parmEnd = tok->next()->findClosingBracket();