Use initializer list in Arrays

This commit is contained in:
kobewi
2024-03-22 22:53:26 +01:00
parent 594d64ec24
commit 75881f8322
72 changed files with 347 additions and 947 deletions

View File

@@ -603,10 +603,7 @@ void SceneDebuggerObject::serialize(Array &r_arr, int p_max_size) {
Ref<Resource> res = var;
Array prop;
prop.push_back(pi.name);
prop.push_back(pi.type);
Array prop = { pi.name, pi.type };
PropertyHint hint = pi.hint;
String hint_string = pi.hint_string;
if (res.is_valid() && !res->get_path().is_empty()) {