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:
parent
f11899f885
commit
dbcf2f2dd4
8 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue