mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
LibManual: Refactor SectionNode in preparation for subsections
- Calculate the full name on demand - Make section and name protected - Reorder some members logically - Change the name getter to be fallible, as some implementors need to allocate
This commit is contained in:
parent
f502e24bd7
commit
4625f7aab5
6 changed files with 23 additions and 10 deletions
|
@ -25,7 +25,7 @@ public:
|
|||
|
||||
virtual NonnullRefPtrVector<Node>& children() const override;
|
||||
virtual Node const* parent() const override;
|
||||
virtual String name() const override { return m_page; };
|
||||
virtual ErrorOr<String> name() const override { return m_page; };
|
||||
virtual bool is_page() const override { return true; }
|
||||
|
||||
ErrorOr<String> path() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue