diff options
author | Kevin Meyer <kevinmeyer@me.com> | 2020-07-10 23:52:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-11 11:34:59 +0200 |
commit | 821043d798bb180c29d841223ea839a3e7da6dbb (patch) | |
tree | 14a7e54dcbff3d02dc3caa6f15f7c9075cf3631f /Libraries | |
parent | d5d732cc873cab40dc74ebe7093aac78a0b61b80 (diff) | |
download | serenity-821043d798bb180c29d841223ea839a3e7da6dbb.zip |
LibWeb: Remove some unnecessary casts
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/Frame/EventHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Frame/EventHandler.cpp b/Libraries/LibWeb/Frame/EventHandler.cpp index 6c0e804848..f37d24ce86 100644 --- a/Libraries/LibWeb/Frame/EventHandler.cpp +++ b/Libraries/LibWeb/Frame/EventHandler.cpp @@ -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) |