fix style warnings on itself

This commit is contained in:
Basile Burg 2018-01-29 12:38:23 +01:00
parent 10bf4725c0
commit 718d29c02e
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ class UnusedVariableCheck : BaseAnalyzer
override void visit(const Type2 tp)
{
if (tp.typeIdentifierPart && tp.typeIdentifierPart &&
if (tp.typeIdentifierPart &&
tp.typeIdentifierPart.identifierOrTemplateInstance)
{
const IdentifierOrTemplateInstance idt = tp.typeIdentifierPart.identifierOrTemplateInstance;

View File

@ -171,7 +171,7 @@ public:
bool isStr, isSzInt;
Token customType;
if (decl.type.type2.typeIdentifierPart && decl.type.type2.typeIdentifierPart &&
if (decl.type.type2.typeIdentifierPart &&
decl.type.type2.typeIdentifierPart.typeIdentifierPart is null)
{
const IdentifierOrTemplateInstance idt =