mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:07:46 +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
|
@ -20,7 +20,7 @@ class Node : public RefCounted<Node> {
|
|||
public:
|
||||
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 ErrorOr<String> name() const = 0;
|
||||
virtual bool is_page() const { return false; }
|
||||
|
@ -33,11 +33,11 @@ public:
|
|||
// [page] (no second argument) - will find first section with that page
|
||||
// [section] [page]
|
||||
// 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.
|
||||
// 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&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue