From ee3a73ddbb90f6ebab22e099c34e1aae400a81d1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 24 Jun 2021 19:53:42 +0200 Subject: AK: Rename downcast => verify_cast This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is()). --- Userland/Applications/Browser/BrowserWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications/Browser/BrowserWindow.cpp') diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index a00feabe78..f8cf9c9b49 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -479,7 +479,7 @@ GUI::TabWidget& BrowserWindow::tab_widget() Tab& BrowserWindow::active_tab() { - return downcast(*tab_widget().active_widget()); + return verify_cast(*tab_widget().active_widget()); } void BrowserWindow::set_window_title_for_tab(Tab const& tab) -- cgit v1.2.3