Skip to content

Commit 5030611

Browse files
Update checkother.cpp
1 parent 8234674 commit 5030611

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/checkother.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ static bool isAssignment(const Token* tok) {
599599
return false;
600600
if (tok->isAssignmentOp() || tok->tokType() == Token::eIncDecOp)
601601
return true;
602-
return Token::Match(tok, "[{(]") && tok->astOperand1()->variable() && tok->astOperand1() == tok->astOperand1()->variable()->nameToken();
602+
return Token::Match(tok, "[{(]") && tok->astOperand1()->variable() && tok->astOperand1() == tok->astOperand1()->variable()->nameToken();
603603
}
604604

605605
void CheckOtherImpl::checkRedundantAssignment()
@@ -646,7 +646,7 @@ void CheckOtherImpl::checkRedundantAssignment()
646646
});
647647
if (trivial)
648648
continue;
649-
}
649+
}
650650

651651
const Token* rhs = tok->astOperand2();
652652
// Do not warn about assignment with 0 / NULL

0 commit comments

Comments
 (0)