From 7fd9ca808c908c67d9bec2183034ad16ea86a912 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 2 Apr 2020 21:09:06 +0800 Subject: ... --- src/ui/controls/flex_layout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/controls/flex_layout.cpp') diff --git a/src/ui/controls/flex_layout.cpp b/src/ui/controls/flex_layout.cpp index c881b6f1..5412164a 100644 --- a/src/ui/controls/flex_layout.cpp +++ b/src/ui/controls/flex_layout.cpp @@ -59,11 +59,11 @@ void FlexLayout::SetFlexDirection(FlexDirection direction) { render_object_->SetFlexDirection(direction); } -void FlexLayout::OnAddChild(Control* child, int position) { +void FlexLayout::OnAddChild(Control* child, const Index position) { render_object_->AddChild(child->GetRenderObject(), position); } -void FlexLayout::OnRemoveChild(Control* child, int position) { +void FlexLayout::OnRemoveChild(Control* child, const Index position) { CRU_UNUSED(child) render_object_->RemoveChild(position); -- cgit v1.2.3