|
@@ -20,7 +20,7 @@ class Node : public RefCounted<Node> {
|
|
public:
|
|
public:
|
|
virtual ~Node() = default;
|
|
virtual ~Node() = default;
|
|
|
|
|
|
- virtual ErrorOr<Span<NonnullRefPtr<Node>>> children() const = 0;
|
|
|
|
|
|
+ virtual ErrorOr<Span<NonnullRefPtr<Node const>>> children() const = 0;
|
|
virtual Node const* parent() const = 0;
|
|
virtual Node const* parent() const = 0;
|
|
virtual ErrorOr<String> name() const = 0;
|
|
virtual ErrorOr<String> name() const = 0;
|
|
virtual bool is_page() const { return false; }
|
|
virtual bool is_page() const { return false; }
|
|
@@ -33,11 +33,11 @@ public:
|
|
// [page] (no second argument) - will find first section with that page
|
|
// [page] (no second argument) - will find first section with that page
|
|
// [section] [page]
|
|
// [section] [page]
|
|
// Help can also (externally) handle search queries, which is not possible (yet) in man.
|
|
// Help can also (externally) handle search queries, which is not possible (yet) in man.
|
|
- static ErrorOr<NonnullRefPtr<PageNode>> try_create_from_query(Vector<StringView, 2> const& query_parameters);
|
|
|
|
|
|
+ static ErrorOr<NonnullRefPtr<PageNode const>> try_create_from_query(Vector<StringView, 2> const& query_parameters);
|
|
|
|
|
|
// Finds a page via the help://man/<number>/<subsections...>/page URLs.
|
|
// Finds a page via the help://man/<number>/<subsections...>/page URLs.
|
|
// This will automatically start discovering pages by inspecting the filesystem.
|
|
// This will automatically start discovering pages by inspecting the filesystem.
|
|
- static ErrorOr<NonnullRefPtr<Node>> try_find_from_help_url(URL const&);
|
|
|
|
|
|
+ static ErrorOr<NonnullRefPtr<Node const>> try_find_from_help_url(URL const&);
|
|
};
|
|
};
|
|
|
|
|
|
}
|
|
}
|