1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:15:09 +00:00

LibManual: Fix const-correctness issues

This commit is contained in:
Andreas Kling 2023-02-20 18:59:53 +01:00
parent f11899f885
commit dbcf2f2dd4
8 changed files with 18 additions and 18 deletions

View file

@ -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;
}