[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 ...@@ -770,7 +770,7 @@ ReceiveEntities(struct mpd_connection *connection) noexcept
std::list<ProxyEntity> entities; std::list<ProxyEntity> entities;
struct mpd_entity *entity; struct mpd_entity *entity;
while ((entity = mpd_recv_entity(connection)) != nullptr) while ((entity = mpd_recv_entity(connection)) != nullptr)
entities.push_back(ProxyEntity(entity)); entities.emplace_back(entity);
mpd_response_finish(connection); mpd_response_finish(connection);
return entities; 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