AK+Everywhere: Rename verify_cast to as

Follow-up to fc20e61e72.
This commit is contained in:
Timothy Flynn 2025-01-21 09:12:05 -05:00 committed by Tim Flynn
commit 85b424464a
Notes: github-actions[bot] 2025-01-21 16:49:39 +00:00
191 changed files with 574 additions and 574 deletions

View file

@ -827,7 +827,7 @@ void WebContentView::finish_handling_drag_event(Web::DragEvent const& event)
if (event.type != Web::DragEvent::Type::Drop)
return;
auto const& chrome_data = verify_cast<DragData>(*event.chrome_data);
auto const& chrome_data = as<DragData>(*event.chrome_data);
emit urls_dropped(chrome_data.urls);
}
@ -867,7 +867,7 @@ void WebContentView::enqueue_native_event(Web::KeyEvent::Type type, QKeyEvent co
void WebContentView::finish_handling_key_event(Web::KeyEvent const& key_event)
{
auto& chrome_data = verify_cast<KeyData>(*key_event.chrome_data);
auto& chrome_data = as<KeyData>(*key_event.chrome_data);
auto& event = *chrome_data.event;
switch (key_event.type) {