forked from qt-creator/qt-creator
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:
@@ -299,8 +299,8 @@ Process *LauncherSocketHandler::setupProcess(quintptr token)
|
||||
|
||||
void LauncherSocketHandler::removeProcess(quintptr token)
|
||||
{
|
||||
const auto it = m_processes.find(token);
|
||||
if (it == m_processes.end())
|
||||
const auto it = m_processes.constFind(token);
|
||||
if (it == m_processes.constEnd())
|
||||
return;
|
||||
|
||||
Process *process = it.value();
|
||||
|
||||
Reference in New Issue
Block a user