Dictionary::get_key_list use LocalVector instead of List.

This commit is contained in:
Yufeng Ying 2025-03-14 03:04:25 +08:00
parent 4248411baf
commit f7e4987d0e
13 changed files with 33 additions and 44 deletions

View file

@ -638,9 +638,7 @@ EditorExportPlatform::ExportNotifier::~ExportNotifier() {
bool EditorExportPlatform::_export_customize_dictionary(Dictionary &dict, LocalVector<Ref<EditorExportPlugin>> &customize_resources_plugins) {
bool changed = false;
List<Variant> keys;
dict.get_key_list(&keys);
for (const Variant &K : keys) {
for (const Variant &K : dict.get_key_list()) {
Variant v = dict[K];
switch (v.get_type()) {
case Variant::OBJECT: {