mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibWeb: Remove some unnecessary casts
This commit is contained in:
parent
d5d732cc87
commit
821043d798
Notes:
sideshowbarker
2024-07-19 04:58:21 +09:00
Author: https://github.com/kevmeyer Commit: https://github.com/SerenityOS/serenity/commit/821043d798b Pull-request: https://github.com/SerenityOS/serenity/pull/2755 Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -60,14 +60,14 @@ const LayoutDocument* EventHandler::layout_root() const
|
|||
{
|
||||
if (!m_frame.document())
|
||||
return nullptr;
|
||||
return static_cast<LayoutDocument*>(m_frame.document()->layout_node());
|
||||
return m_frame.document()->layout_node();
|
||||
}
|
||||
|
||||
LayoutDocument* EventHandler::layout_root()
|
||||
{
|
||||
if (!m_frame.document())
|
||||
return nullptr;
|
||||
return const_cast<LayoutDocument*>(m_frame.document()->layout_node());
|
||||
return m_frame.document()->layout_node();
|
||||
}
|
||||
|
||||
bool EventHandler::handle_mouseup(const Gfx::IntPoint& position, unsigned button, unsigned modifiers)
|
||||
|
|
Loading…
Add table
Reference in a new issue