mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-16 01:51:16 -03:00
Prefer swap() member function to std::swap. We were hitting the
inefficient generic std::swap for some derived types.
This commit is contained in:
@@ -1090,7 +1090,7 @@ bool parse_execution_context_t::determine_io_chain(const parse_node_t &statement
|
||||
|
||||
if (out_chain && ! errored)
|
||||
{
|
||||
std::swap(*out_chain, result);
|
||||
out_chain->swap(result);
|
||||
}
|
||||
return ! errored;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user