From ab353ce0e481358a76091ce64de51ce20e2ce888 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Mon, 20 Dec 2021 22:54:59 -0800 Subject: [PATCH] common.h: use emplace in vec_append --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 5b46e3636..f1e3c27ad 100644 --- a/src/common.h +++ b/src/common.h @@ -260,7 +260,7 @@ void vec_append(std::vector &receiver, std::vector &&donator) { if (receiver.empty()) { receiver = std::move(donator); } else { - receiver.insert(receiver.end(), std::make_move_iterator(donator.begin()), + receiver.emplace(receiver.end(), std::make_move_iterator(donator.begin()), std::make_move_iterator(donator.end())); } }