diff --git a/lib/checkunusedvar.cpp b/lib/checkunusedvar.cpp index d353d7492..5f1b3ba15 100644 --- a/lib/checkunusedvar.cpp +++ b/lib/checkunusedvar.cpp @@ -780,8 +780,7 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const tok = tok->next(); if (!var->isReference()) variables.read(tok->varId(), tok); - } - else if (var->typeEndToken()->str() == ">") // Be careful with types like std::vector + } else if (var->typeEndToken()->str() == ">") // Be careful with types like std::vector tok = tok->previous(); break; }