diff --git a/lib/checkunusedvar.cpp b/lib/checkunusedvar.cpp index 76457735ca3..ca91679c17a 100644 --- a/lib/checkunusedvar.cpp +++ b/lib/checkunusedvar.cpp @@ -1551,7 +1551,7 @@ void CheckUnusedVar::checkStructMemberUsage() } } - if (Token::Match(tok, "] :")) { + if (Token::simpleMatch(tok, "] :")) { tok = tok->next()->astOperand2(); const ValueType *valueType = tok->valueType();