diff options
Diffstat (limited to 'parse_tree.cpp')
-rw-r--r-- | parse_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_tree.cpp b/parse_tree.cpp index ae8e42d0..a1de4f96 100644 --- a/parse_tree.cpp +++ b/parse_tree.cpp @@ -687,13 +687,13 @@ void parse_ll_t::acquire_output(parse_node_tree_t *output, parse_error_list_t *e { if (output != NULL) { - std::swap(*output, this->nodes); + output->swap(this->nodes); } this->nodes.clear(); if (errors != NULL) { - std::swap(*errors, this->errors); + errors->swap(this->errors); } this->errors.clear(); this->symbol_stack.clear(); |