We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2800b4 commit dbae23cCopy full SHA for dbae23c
1 file changed
lib/checkother.cpp
@@ -1937,7 +1937,7 @@ void CheckOther::checkConstPointer()
1937
continue;
1938
if (deref != NONE) {
1939
const Token* gparent = parent->astParent();
1940
- while (Token::simpleMatch(gparent, "[") && parent != gparent->astOperand2() && parent->str() == gparent->str())
+ while (Token::simpleMatch(gparent, "[") && parent != gparent->astOperand2())
1941
gparent = gparent->astParent();
1942
while (Token::Match(gparent, "[?:]"))
1943
0 commit comments