UI: Pass parent WebView by non-const ref when creating children

We need to call non-const methods on this guy and access its members in
a non-const way.
This commit is contained in:
Andrew Kaster 2025-04-15 15:54:30 -06:00 committed by Andrew Kaster
commit 6ff0373556
Notes: github-actions[bot] 2025-04-16 16:43:45 +00:00
6 changed files with 6 additions and 6 deletions

View file

@ -110,7 +110,7 @@ HeadlessWebView& Application::create_web_view(Core::AnonymousBuffer theme, Web::
return *m_web_views.last();
}
HeadlessWebView& Application::create_child_web_view(HeadlessWebView const& parent, u64 page_index)
HeadlessWebView& Application::create_child_web_view(HeadlessWebView& parent, u64 page_index)
{
auto web_view = HeadlessWebView::create_child(parent, page_index);
m_web_views.append(move(web_view));