Utils: Fix clazy "Mixing iterators with const_iterators" warnings

Change-Id: Iab29d57459713e107d7e74908df347955b9f50a0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-11-29 21:02:19 +01:00
parent 5c03387c13
commit 7bc86a8b8d
6 changed files with 18 additions and 19 deletions

View File

@@ -534,8 +534,8 @@ void LauncherSocket::unregisterHandle(quintptr token)
{
QTC_ASSERT(!isCalledFromLaunchersThread(), return);
QMutexLocker locker(&m_mutex);
auto it = m_handles.find(token);
if (it == m_handles.end())
auto it = m_handles.constFind(token);
if (it == m_handles.constEnd())
return; // TODO: issue a warning
LauncherHandle *launcherHandle = it.value();