summaryrefslogtreecommitdiff
path: root/editor/project_export.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-21 01:06:21 +0200
committerGitHub <noreply@github.com>2022-05-21 01:06:21 +0200
commit8adf04804550957f43c810b13fcce66dd76e5fd8 (patch)
tree2ee58365f1092587277770ceaedfc1e35454acfd /editor/project_export.cpp
parentf4126cc902b0cbb100bcf1b37ee15df5a8430d21 (diff)
parent45af29da8095af16729955117a165d23e77cd740 (diff)
Merge pull request #61194 from reduz/new-hash-set
Add a new HashSet template
Diffstat (limited to 'editor/project_export.cpp')
-rw-r--r--editor/project_export.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index 839378dad2..503eb5000b 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -366,10 +366,13 @@ void ProjectExportDialog::_update_feature_list() {
}
custom_feature_display->clear();
- for (RBSet<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);
}