1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37: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:
kleines Filmröllchen 2022-12-14 13:33:28 +01:00 committed by Andrew Kaster
parent 437d3ca0ea
commit aa5e574872
5 changed files with 22 additions and 12 deletions

View file

@ -20,7 +20,7 @@ class Node : public RefCounted<Node> {
public:
virtual ~Node() = default;
virtual NonnullRefPtrVector<Node>& children() const = 0;
virtual ErrorOr<Span<NonnullRefPtr<Node>>> children() const = 0;
virtual Node const* parent() const = 0;
virtual ErrorOr<String> name() const = 0;
virtual bool is_page() const { return false; }