[clang-tidy] use emplace_back
Found with hicpp-use-emplace Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
dea0cc165d
commit
87f7b0f0bb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user