mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Replace some shared_ptrs with const shared_ptr &. Don't use shared_ptr in postfork.cpp. Eliminate copy constructor in io_data_t. Simplify some other uses of shared_ptr<io_data_t>
This commit is contained in:
4
exec.cpp
4
exec.cpp
@@ -1183,7 +1183,7 @@ void exec(parser_t &parser, job_t *j)
|
||||
|
||||
for (io_chain_t::iterator iter = j->io.begin(); iter != j->io.end(); iter++)
|
||||
{
|
||||
shared_ptr<io_data_t> &tmp_io = *iter;
|
||||
const shared_ptr<io_data_t> &tmp_io = *iter;
|
||||
if (tmp_io->io_mode == IO_FILE && strcmp(tmp_io->filename_cstr, "/dev/null") != 0)
|
||||
{
|
||||
skip_fork = false;
|
||||
@@ -1439,7 +1439,7 @@ static int exec_subshell_internal(const wcstring &cmd, wcstring_list_t *lst)
|
||||
|
||||
is_subshell=1;
|
||||
|
||||
shared_ptr<io_data_t> io_buffer(io_buffer_create(0));
|
||||
const shared_ptr<io_data_t> io_buffer(io_buffer_create(0));
|
||||
|
||||
prev_status = proc_get_last_status();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user