diff --git a/lib/checkother.cpp b/lib/checkother.cpp index a8aaa33f4..23172e2d8 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -2221,7 +2221,7 @@ void CheckOther::checkDuplicateExpression() if (assignment) selfAssignmentError(tok, tok->astOperand1()->expressionString()); else { - if (_tokenizer->isCPP() && _settings->standards.cpp==Standards::CPP11 && tok->str() == "==") { + if (_tokenizer->isCPP() && _settings->standards.cpp==Standards::CPP11 && tok->str() == "==") { const Token* parent = tok->astParent(); while (parent && parent->astParent()) { parent = parent->astParent();