mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
Revert shared_ptr<io_data_t> changes until kinks are ironed out
https://github.com/fish-shell/fish-shell/pull/487 Revert "Merge branch 'oo-io' of git://github.com/xiaq/fish-shell into xiaq-oo-io" This reverts commitf3c8f535a4, reversing changes made tob02f6cf3bc. Also revertsac023f7588anda79d3c680c
This commit is contained in:
@@ -377,7 +377,7 @@ parser_t::parser_t(enum parser_type_t type, bool errors) :
|
||||
job_start_pos(0),
|
||||
eval_level(-1),
|
||||
current_block(NULL),
|
||||
block_io(shared_ptr<io_data_t>())
|
||||
block_io(NULL)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1495,7 +1495,7 @@ void parser_t::parse_job_argument_list(process_t *p,
|
||||
case TOK_REDIRECT_NOCLOB:
|
||||
{
|
||||
int type = tok_last_type(tok);
|
||||
shared_ptr<io_data_t> new_io;
|
||||
std::auto_ptr<io_data_t> new_io;
|
||||
wcstring target;
|
||||
bool has_target = false;
|
||||
wchar_t *end;
|
||||
@@ -1633,7 +1633,7 @@ void parser_t::parse_job_argument_list(process_t *p,
|
||||
}
|
||||
}
|
||||
|
||||
j->io.push_back(new_io);
|
||||
j->io.push_back(new_io.release());
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user