mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
Help+LibManual: Make the children accessor fallible
This is convenient for the section node which might compute children on the fly.
This commit is contained in:
parent
437d3ca0ea
commit
aa5e574872
5 changed files with 22 additions and 12 deletions
|
@ -16,10 +16,10 @@ Node const* PageNode::parent() const
|
|||
return m_section.ptr();
|
||||
}
|
||||
|
||||
NonnullRefPtrVector<Node>& PageNode::children() const
|
||||
ErrorOr<Span<NonnullRefPtr<Node>>> PageNode::children() const
|
||||
{
|
||||
static NonnullRefPtrVector<Node> empty_vector;
|
||||
return empty_vector;
|
||||
return empty_vector.span();
|
||||
}
|
||||
|
||||
ErrorOr<String> PageNode::path() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue