From 3fe67fb5ad1b8fd7c5e099190de31e9d9e08d0d2 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Mon, 26 Jul 2021 21:31:17 +0200 Subject: Use C++ iterators in the Mono module --- modules/mono/mono_gd/gd_mono_assembly.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/mono/mono_gd/gd_mono_assembly.cpp') diff --git a/modules/mono/mono_gd/gd_mono_assembly.cpp b/modules/mono/mono_gd/gd_mono_assembly.cpp index 67d6f3ef29..67f38bf127 100644 --- a/modules/mono/mono_gd/gd_mono_assembly.cpp +++ b/modules/mono/mono_gd/gd_mono_assembly.cpp @@ -330,8 +330,8 @@ no_pdb: void GDMonoAssembly::unload() { ERR_FAIL_NULL(image); // Should not be called if already unloaded - for (Map::Element *E = cached_raw.front(); E; E = E->next()) { - memdelete(E->value()); + for (const KeyValue &E : cached_raw) { + memdelete(E.value); } cached_classes.clear(); -- cgit v1.2.3