forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user