summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibManual/SubsectionNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibManual/SubsectionNode.cpp')
-rw-r--r--Userland/Libraries/LibManual/SubsectionNode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibManual/SubsectionNode.cpp b/Userland/Libraries/LibManual/SubsectionNode.cpp
index 18f81d54fe..cb1e6d44fb 100644
--- a/Userland/Libraries/LibManual/SubsectionNode.cpp
+++ b/Userland/Libraries/LibManual/SubsectionNode.cpp
@@ -10,7 +10,7 @@
namespace Manual {
-SubsectionNode::SubsectionNode(NonnullRefPtr<SectionNode> parent, StringView name)
+SubsectionNode::SubsectionNode(NonnullRefPtr<SectionNode const> parent, StringView name)
: SectionNode(name, name)
, m_parent(move(parent))
{
@@ -31,7 +31,7 @@ PageNode const* SubsectionNode::document() const
if (sibling_name.is_error())
continue;
if (sibling_name.value() == m_name && is<PageNode>(*sibling))
- return static_cast<PageNode*>(&*sibling);
+ return static_cast<PageNode const*>(&*sibling);
}
return nullptr;
}