summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-01 08:45:41 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-01 08:45:41 +0100
commit394bb0ee2bcd863aed75e1c6799c4c8138dbf269 (patch)
tree05e28b1b54da3ac7939fc3529191390a8f7e66a2 /scene/main
parente101305950883661f9c47d8e6c552355f5e1fc2e (diff)
Fix various typos with codespell
Finally do the childs -> children rename too.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/canvas_item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp
index cde3503bdf..541c7a0587 100644
--- a/scene/main/canvas_item.cpp
+++ b/scene/main/canvas_item.cpp
@@ -408,8 +408,8 @@ void CanvasItem::set_as_top_level(bool p_top_level) {
void CanvasItem::_toplevel_changed() {
// Inform children that toplevel status has changed on a parent.
- int childs = get_child_count();
- for (int i = 0; i < childs; i++) {
+ int children = get_child_count();
+ for (int i = 0; i < children; i++) {
CanvasItem *child = Object::cast_to<CanvasItem>(get_child(i));
if (child) {
child->_toplevel_changed_on_parent();