mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Revert "common.h: use emplace in vec_append"
This was dumb, and not intended for commit.
This reverts commit ab353ce0e4
.
This commit is contained in:
parent
35253900cb
commit
8e1173bac9
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ void vec_append(std::vector<T> &receiver, std::vector<T> &&donator) {
|
||||||
if (receiver.empty()) {
|
if (receiver.empty()) {
|
||||||
receiver = std::move(donator);
|
receiver = std::move(donator);
|
||||||
} else {
|
} else {
|
||||||
receiver.emplace(receiver.end(), std::make_move_iterator(donator.begin()),
|
receiver.insert(receiver.end(), std::make_move_iterator(donator.begin()),
|
||||||
std::make_move_iterator(donator.end()));
|
std::make_move_iterator(donator.end()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue