Android: Fix clazy "Mixing iterators with const_iterators" warnings

Change-Id: I90fd2c10240a367ef546f9b48b2a2f784f00f4e0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2022-11-29 21:11:25 +01:00
parent 4417c48e7b
commit ccb2317a16
3 changed files with 6 additions and 6 deletions

View File

@@ -149,8 +149,8 @@ AutotestPluginPrivate::AutotestPluginPrivate()
connect(sessionManager, &ProjectExplorer::SessionManager::aboutToRemoveProject,
this, [] (ProjectExplorer::Project *project) {
auto it = s_projectSettings.find(project);
if (it != s_projectSettings.end()) {
const auto it = s_projectSettings.constFind(project);
if (it != s_projectSettings.constEnd()) {
delete it.value();
s_projectSettings.erase(it);
}