1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 12:06:38 +02:00

Replace all uses of push_back with emplace_back.

This commit is contained in:
Sadie Powell
2022-01-04 12:28:55 +00:00
parent 7d1047490e
commit 106750db77
19 changed files with 57 additions and 57 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ void Join::Run(MessageSource &source, const std::vector<Anope::string> &params,
}
std::list<SJoinUser> users;
users.push_back(std::make_pair(ChannelStatus(), user));
users.emplace_back(ChannelStatus(), user);
Channel *chan = Channel::Find(channel);
SJoin(source, channel, chan ? chan->creation_time : Anope::CurTime, "", users);