From 0263452f5db2a7d17762b7609d0c4c91322f78e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 22 Apr 2018 07:45:36 +0200 Subject: [PATCH] CheckClass: Use isLikelyStreamRead --- lib/checkclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index ac3e4472b..771f303f7 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -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; // ++/--