BAN: Fix Array and Vector span constness

This commit is contained in:
2025-10-27 02:50:16 +02:00
parent d93fcff5db
commit 37aef630d2
4 changed files with 4 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ static const BAN::Vector<BAN::String> get_program_list()
return programs;
}
static BAN::Vector<BAN::StringView> get_filtered_program_list(BAN::Span<BAN::String> program_list, BAN::StringView prompt)
static BAN::Vector<BAN::StringView> get_filtered_program_list(BAN::Span<const BAN::String> program_list, BAN::StringView prompt)
{
BAN::Vector<BAN::StringView> filtered_list;
for (const auto& program : program_list)

View File

@@ -52,7 +52,7 @@ private:
Command command;
BAN::Span<const BAN::String> arguments;
BAN::Span<const Environment> environments;
BAN::Span<Redirection> redirections;
BAN::Span<const Redirection> redirections;
int fd_in;
int fd_out;
bool background;