Eliminate moved_ref

Use real rvalue references instead
This commit is contained in:
ridiculousfish
2017-01-26 15:36:12 -08:00
parent 1634c9df78
commit fec83fa975
8 changed files with 16 additions and 29 deletions

View File

@@ -3305,7 +3305,7 @@ static int read_ni(int fd, const io_chain_t &io) {
parse_error_list_t errors;
parse_node_tree_t tree;
if (!parse_util_detect_errors(str, &errors, false /* do not accept incomplete */, &tree)) {
parser.eval_acquiring_tree(str, io, TOP, moved_ref<parse_node_tree_t>(tree));
parser.eval(str, io, TOP, std::move(tree));
} else {
wcstring sb;
parser.get_backtrace(str, errors, &sb);