diff options
Diffstat (limited to 'src/ui/controls/stack_layout.cpp')
-rw-r--r-- | src/ui/controls/stack_layout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/stack_layout.cpp b/src/ui/controls/stack_layout.cpp index b9abb510..47511f33 100644 --- a/src/ui/controls/stack_layout.cpp +++ b/src/ui/controls/stack_layout.cpp @@ -15,11 +15,11 @@ render::RenderObject* StackLayout::GetRenderObject() const { return render_object_.get(); } -void StackLayout::OnAddChild(Control* child, int position) { +void StackLayout::OnAddChild(Control* child, const Index position) { render_object_->AddChild(child->GetRenderObject(), position); } -void StackLayout::OnRemoveChild(Control* child, int position) { +void StackLayout::OnRemoveChild(Control* child, const Index position) { CRU_UNUSED(child) render_object_->RemoveChild(position); |