[clang-tidy] use emplace_back

Found with hicpp-use-emplace Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent dea0cc16
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment