Merge pull request #115646 from Ivorforce/list-explicit-copy

Change `List` copy constructor from implicit to explicit.
This commit is contained in:
Thaddeus Crews 2026-02-16 15:02:34 -06:00
commit 1e12317895
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
20 changed files with 29 additions and 32 deletions

View file

@ -3211,7 +3211,7 @@ void Node::replace_by(RequiredParam<Node> rp_node, bool p_keep_groups) {
EXTRACT_PARAM_OR_FAIL(p_node, rp_node);
ERR_FAIL_COND(p_node->data.parent);
List<Node *> owned = data.owned;
List<Node *> owned(data.owned);
List<Node *> owned_by_owner;
Node *owner = (data.owner == this) ? p_node : data.owner;