From c732014821d2e3c4a06dcdd4ae7c4c514313b15f Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 18 Dec 2020 08:09:42 +0100 Subject: [PATCH] A - (A - (B + 1)) = B + 1 Change-Id: I6ce320c0fd3958c1fef98b322bec8dbded2232cf Reviewed-by: hjk --- src/plugins/cpptools/builtinindexingsupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cpptools/builtinindexingsupport.cpp b/src/plugins/cpptools/builtinindexingsupport.cpp index 99d50876a61..a3e95da947f 100644 --- a/src/plugins/cpptools/builtinindexingsupport.cpp +++ b/src/plugins/cpptools/builtinindexingsupport.cpp @@ -170,7 +170,7 @@ void indexFindErrors(QFutureInterface &indexingFuture, document->releaseSourceAndAST(); - indexingFuture.setProgressValue(files.size() - (files.size() - (i + 1))); + indexingFuture.setProgressValue(i + 1); } const QString elapsedTime = Utils::formatElapsedTime(timer.elapsed());