From 0c28fd41ed513dce59b96067c96b1cb6c0aacc2e Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sat, 18 Feb 2023 17:39:41 +0330 Subject: Shell: Convert all immediately convertible fallible functions to ErrorOr --- Userland/Shell/Shell.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Userland/Shell/Shell.h') diff --git a/Userland/Shell/Shell.h b/Userland/Shell/Shell.h index dd6a22502c..9d01900823 100644 --- a/Userland/Shell/Shell.h +++ b/Userland/Shell/Shell.h @@ -165,15 +165,15 @@ public: static DeprecatedString expand_tilde(StringView expression); static Vector expand_globs(StringView path, StringView base); static Vector expand_globs(Vector path_segments, StringView base); - Vector expand_aliases(Vector); + ErrorOr> expand_aliases(Vector); DeprecatedString resolve_path(DeprecatedString) const; DeprecatedString resolve_alias(StringView) const; static bool has_history_event(StringView); - RefPtr get_argument(size_t) const; - RefPtr lookup_local_variable(StringView) const; - DeprecatedString local_variable_or(StringView, DeprecatedString const&) const; + ErrorOr> get_argument(size_t) const; + ErrorOr> lookup_local_variable(StringView) const; + ErrorOr local_variable_or(StringView, DeprecatedString const&) const; void set_local_variable(DeprecatedString const&, RefPtr, bool only_in_current_frame = false); void unset_local_variable(StringView, bool only_in_current_frame = false); @@ -276,7 +276,7 @@ public: No }; - void highlight(Line::Editor&) const; + ErrorOr highlight(Line::Editor&) const; Vector complete(); Vector complete(StringView); Vector complete_program_name(StringView, size_t offset, EscapeMode = EscapeMode::Bareword); -- cgit v1.2.3