summaryrefslogtreecommitdiff
path: root/editor/project_export.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/project_export.cpp')
-rw-r--r--editor/project_export.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index 1344afbd3a..503eb5000b 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -346,7 +346,7 @@ void ProjectExportDialog::_update_feature_list() {
Ref<EditorExportPreset> current = get_current_preset();
ERR_FAIL_COND(current.is_null());
- Set<String> fset;
+ RBSet<String> fset;
List<String> features;
current->get_platform()->get_platform_features(&features);
@@ -366,10 +366,13 @@ void ProjectExportDialog::_update_feature_list() {
}
custom_feature_display->clear();
- for (Set<String>::Element *E = fset.front(); E; E = E->next()) {
- String f = E->get();
- if (E->next()) {
+ bool first = true;
+ for (const String &E : fset) {
+ String f = E;
+ if (!first) {
f += ", ";
+ } else {
+ first = false;
}
custom_feature_display->add_text(f);
}