diff options
Diffstat (limited to 'Ladybird/Tab.cpp')
-rw-r--r-- | Ladybird/Tab.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index a539ee9c13..1f6fedb44d 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -18,7 +18,7 @@ extern String s_serenity_resource_root; extern Browser::Settings* s_settings; -Tab::Tab(QMainWindow* window) +Tab::Tab(BrowserWindow* window) : m_window(window) { m_layout = new QBoxLayout(QBoxLayout::Direction::TopToBottom, this); @@ -146,10 +146,7 @@ void Tab::page_favicon_changed(QIcon icon) int Tab::tab_index() { - // FIXME: I hear you like footguns... - // There has to be a better way of doing this - auto browser_window = reinterpret_cast<BrowserWindow*>(m_window); - return browser_window->tab_index(this); + return m_window->tab_index(this); } void Tab::debug_request(String const& request, String const& argument) |