CheckClass: Use isLikelyStreamRead

This commit is contained in:
Daniel Marjamäki 2018-04-22 07:45:36 +02:00
parent be48de1be9
commit 0263452f5d
1 changed files with 1 additions and 1 deletions

View File

@ -1984,7 +1984,7 @@ bool CheckClass::checkConstFunc(const Scope *scope, const Function *func, bool&
// Streaming
else if (end->strAt(1) == "<<" && tok1->strAt(-1) != "<<")
return false;
else if (tok1->strAt(-1) == ">>")
else if (isLikelyStreamRead(true, tok1->previous()))
return false;
// ++/--