Use const iterator for erase

Change-Id: Ibfbc19518ad6d7d28cf864f1f94125222ed62c28
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2021-12-16 18:15:47 +01:00
parent ff0ce27c1f
commit c24ff5ad19

View File

@@ -299,8 +299,8 @@ Process *LauncherSocketHandler::setupProcess(quintptr token)
void LauncherSocketHandler::removeProcess(quintptr token) void LauncherSocketHandler::removeProcess(quintptr token)
{ {
const auto it = m_processes.find(token); const auto it = m_processes.constFind(token);
if (it == m_processes.end()) if (it == m_processes.constEnd())
return; return;
Process *process = it.value(); Process *process = it.value();