Use RequiredParam/RequiredResult in some high value places

This commit is contained in:
David Snopek
2025-11-27 13:09:16 -06:00
parent 3a97723ff2
commit fc92ce3e7f
79 changed files with 372 additions and 321 deletions

View File

@@ -92,8 +92,8 @@ void Container::_sort_children() {
pending_sort = false;
}
void Container::fit_child_in_rect(Control *p_child, const Rect2 &p_rect) {
ERR_FAIL_NULL(p_child);
void Container::fit_child_in_rect(RequiredParam<Control> rp_child, const Rect2 &p_rect) {
EXTRACT_PARAM_OR_FAIL(p_child, rp_child);
ERR_FAIL_COND(p_child->get_parent() != this);
bool rtl = is_layout_rtl();