diff options
author | Andreas Kling <kling@serenityos.org> | 2023-02-20 19:03:44 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-21 00:54:04 +0100 |
commit | faa1a09042d61724417e78db8283b73f3393f77f (patch) | |
tree | d9bb9b392f58a37ecb825a89374df2113409191e /Userland/Libraries/LibGUI/TreeViewModel.h | |
parent | bfe081caadceaabf9104fbc464d15d705752a78f (diff) | |
download | serenity-faa1a09042d61724417e78db8283b73f3393f77f.zip |
LibGUI: Fix const-correctness issues
Diffstat (limited to 'Userland/Libraries/LibGUI/TreeViewModel.h')
-rw-r--r-- | Userland/Libraries/LibGUI/TreeViewModel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/TreeViewModel.h b/Userland/Libraries/LibGUI/TreeViewModel.h index fcbf143c14..6021fbf519 100644 --- a/Userland/Libraries/LibGUI/TreeViewModel.h +++ b/Userland/Libraries/LibGUI/TreeViewModel.h @@ -49,7 +49,7 @@ public: requires(IsBaseOf<Node, NodeType>) { auto node = adopt_ref(*new NodeType(move(text), move(icon), this, forward<Args>(args)...)); - m_child_nodes.append(*static_cast<Node const*>(node.ptr())); + m_child_nodes.append(*static_cast<Node*>(node.ptr())); return node; } @@ -77,7 +77,7 @@ public: requires(IsBaseOf<Node, NodeType>) { auto node = adopt_ref(*new NodeType(move(text), move(icon), nullptr, forward<Args>(args)...)); - m_nodes.append(*static_cast<Node const*>(node.ptr())); + m_nodes.append(*static_cast<Node*>(node.ptr())); return node; } |