Skip to content

Commit 2ae134e

Browse files
Update astutils.cpp
1 parent 93546a2 commit 2ae134e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2778,7 +2778,7 @@ bool isVariableChanged(const Token *tok, int indirect, const Settings &settings,
27782778
if (ftok->str() == "(" && Token::simpleMatch(ftok->astOperand1(), "[")) // operator() on array element, bail out
27792779
return true;
27802780
const Token * ptok = tok2;
2781-
while (Token::Match(ptok->astParent(), ".|::|["))
2781+
while (Token::Match(ptok->astParent(), ".|::"))
27822782
ptok = ptok->astParent();
27832783
int pindirect = indirect;
27842784
if (indirect == 0 && astIsLHS(tok2) && Token::Match(ptok, ". %var%") && astIsPointer(ptok->next()))

0 commit comments

Comments
 (0)