From 8b4833591086146373f05ce8c4a931d3f13f798f Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 14 Dec 2019 22:10:18 +0000 Subject: [PATCH] use const iterator in QProcessManager::catchDeadChildren() Signed-off-by: Ivailo Monev --- src/core/io/qprocess_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/io/qprocess_unix.cpp b/src/core/io/qprocess_unix.cpp index 788217132..b8af45372 100644 --- a/src/core/io/qprocess_unix.cpp +++ b/src/core/io/qprocess_unix.cpp @@ -258,8 +258,8 @@ void QProcessManager::catchDeadChildren() // try to catch all children whose pid we have registered, and whose // deathPipe is still valid (i.e, we have not already notified it). - QHash::Iterator it = children.begin(); - while (it != children.end()) { + QHash::const_iterator it = children.constBegin(); + while (it != children.constEnd()) { // notify all children that they may have died. they need to run // waitpid() in their own thread. QProcessInfo *info = it.value(); -- 2.11.0