Skip to content

Commit dbae23c

Browse files
Update checkother.cpp [skip ci]
1 parent b2800b4 commit dbae23c

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
@@ -1937,7 +1937,7 @@ void CheckOther::checkConstPointer()
19371937
continue;
19381938
if (deref != NONE) {
19391939
const Token* gparent = parent->astParent();
1940-
while (Token::simpleMatch(gparent, "[") && parent != gparent->astOperand2() && parent->str() == gparent->str())
1940+
while (Token::simpleMatch(gparent, "[") && parent != gparent->astOperand2())
19411941
gparent = gparent->astParent();
19421942
while (Token::Match(gparent, "[?:]"))
19431943
gparent = gparent->astParent();

0 commit comments

Comments
 (0)