summaryrefslogtreecommitdiff
path: root/editor/import_defaults_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-26 19:45:04 +0200
committerGitHub <noreply@github.com>2021-07-26 19:45:04 +0200
commitfab3412139ce6b4befcba950896e45a44365e2f6 (patch)
treed6091ad1438d41eed088ed28a60cfed0c7e6663b /editor/import_defaults_editor.cpp
parenta504e4d4c3af53bb21a0013132719affd3e21798 (diff)
parent92299989bd10fd9855b6d77bc2bfabae218d1eea (diff)
Merge pull request #50899 from akien-mga/refref
Use Ref<T> references as iterators where relevant
Diffstat (limited to 'editor/import_defaults_editor.cpp')
-rw-r--r--editor/import_defaults_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp
index 7c06ef4516..25bca1d4f4 100644
--- a/editor/import_defaults_editor.cpp
+++ b/editor/import_defaults_editor.cpp
@@ -106,7 +106,7 @@ void ImportDefaultsEditor::_update_importer() {
List<Ref<ResourceImporter>> importer_list;
ResourceFormatImporter::get_singleton()->get_importers(&importer_list);
Ref<ResourceImporter> importer;
- for (Ref<ResourceImporter> E : importer_list) {
+ for (const Ref<ResourceImporter> &E : importer_list) {
if (E->get_visible_name() == importers->get_item_text(importers->get_selected())) {
importer = E;
break;
@@ -166,7 +166,7 @@ void ImportDefaultsEditor::clear() {
List<Ref<ResourceImporter>> importer_list;
ResourceFormatImporter::get_singleton()->get_importers(&importer_list);
Vector<String> names;
- for (Ref<ResourceImporter> E : importer_list) {
+ for (const Ref<ResourceImporter> &E : importer_list) {
String vn = E->get_visible_name();
names.push_back(vn);
}