mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Mark parsed_source_ref_t as storing a const pointer
This commit is contained in:
parent
457213a768
commit
aa22c744d2
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ struct parsed_source_t {
|
||||||
parsed_source_t &operator=(parsed_source_t &&) = default;
|
parsed_source_t &operator=(parsed_source_t &&) = default;
|
||||||
};
|
};
|
||||||
/// Return a shared pointer to parsed_source_t, or null on failure.
|
/// Return a shared pointer to parsed_source_t, or null on failure.
|
||||||
using parsed_source_ref_t = std::shared_ptr<parsed_source_t>;
|
using parsed_source_ref_t = std::shared_ptr<const parsed_source_t>;
|
||||||
parsed_source_ref_t parse_source(wcstring src, parse_tree_flags_t flags, parse_error_list_t *errors,
|
parsed_source_ref_t parse_source(wcstring src, parse_tree_flags_t flags, parse_error_list_t *errors,
|
||||||
parse_token_type_t goal = symbol_job_list);
|
parse_token_type_t goal = symbol_job_list);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue