[clang-tidy] use emplace_back

Found with hicpp-use-emplace

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-02-16 17:29:52 -08:00
parent dea0cc165d
commit 87f7b0f0bb
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -770,7 +770,7 @@ ReceiveEntities(struct mpd_connection *connection) noexcept
std::list<ProxyEntity> 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;