Skip to content

Commit 50b1769

Browse files
Update checkother.cpp
1 parent bcd87b0 commit 50b1769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ void CheckOther::checkRedundantAssignment()
631631
[&](const Token *rhs) {
632632
if (Token::simpleMatch(rhs, "{ 0 }"))
633633
return ChildrenToVisit::none;
634-
if (Token::Match(rhs, "%str%|%num%|%name%") && !rhs->varId())
634+
if (Token::Match(rhs, "%num%|%name%") && !rhs->varId())
635635
return ChildrenToVisit::none;
636636
if (Token::Match(rhs, ":: %name%") && rhs->hasKnownIntValue())
637637
return ChildrenToVisit::none;

0 commit comments

Comments
 (0)