From 3b3d1586495a88249f4a48c1ffd9fa650431467d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 7 Aug 2020 09:42:12 +0200 Subject: [PATCH] Shell: Make Command::redirections a NonnullRefPtrVector --- Shell/AST.h | 2 +- Shell/Shell.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shell/AST.h b/Shell/AST.h index 99da564861..e016375db8 100644 --- a/Shell/AST.h +++ b/Shell/AST.h @@ -152,7 +152,7 @@ private: struct Command { Vector argv; - Vector> redirections; + NonnullRefPtrVector redirections; bool should_wait { true }; bool is_pipe_source { false }; bool should_notify_if_in_background { true }; diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index 8fc3ac82d9..14659fe6b6 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -449,7 +449,7 @@ RefPtr Shell::run_command(const AST::Command& command) // Resolve redirections. NonnullRefPtrVector rewirings; for (auto& redirection : command.redirections) { - auto rewiring_result = redirection->apply(); + auto rewiring_result = redirection.apply(); if (rewiring_result.is_error()) { if (!rewiring_result.error().is_empty()) fprintf(stderr, "error: %s\n", rewiring_result.error().characters());