From 87f7b0f0bb32c5be5f9876f2deeeb3c00bcf42c1 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 16 Feb 2020 17:29:52 -0800 Subject: [PATCH] [clang-tidy] use emplace_back Found with hicpp-use-emplace Signed-off-by: Rosen Penev --- src/db/plugins/ProxyDatabasePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx index 74ce9e8d1..18c3c3dd4 100644 --- a/src/db/plugins/ProxyDatabasePlugin.cxx +++ b/src/db/plugins/ProxyDatabasePlugin.cxx @@ -770,7 +770,7 @@ ReceiveEntities(struct mpd_connection *connection) noexcept std::list entities; struct mpd_entity *entity; while ((entity = mpd_recv_entity(connection)) != nullptr) - entities.push_back(ProxyEntity(entity)); + entities.emplace_back(entity); mpd_response_finish(connection); return entities;