CheckClass: Use isLikelyStreamRead
This commit is contained in:
parent
be48de1be9
commit
0263452f5d
|
@ -1984,7 +1984,7 @@ bool CheckClass::checkConstFunc(const Scope *scope, const Function *func, bool&
|
||||||
// Streaming
|
// Streaming
|
||||||
else if (end->strAt(1) == "<<" && tok1->strAt(-1) != "<<")
|
else if (end->strAt(1) == "<<" && tok1->strAt(-1) != "<<")
|
||||||
return false;
|
return false;
|
||||||
else if (tok1->strAt(-1) == ">>")
|
else if (isLikelyStreamRead(true, tok1->previous()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// ++/--
|
// ++/--
|
||||||
|
|
Loading…
Reference in New Issue