1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 06:26: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
+3 -3
View File
@@ -165,7 +165,7 @@ class MyRedisService : public Provider
{
std::vector<std::pair<const char *, size_t> > args;
for (unsigned j = 0; j < cmds.size(); ++j)
args.push_back(std::make_pair(cmds[j].c_str(), cmds[j].length()));
args.emplace_back(cmds[j].c_str(), cmds[j].length());
this->Send(s, i, args);
}
@@ -191,7 +191,7 @@ class MyRedisService : public Provider
{
std::vector<std::pair<const char *, size_t> > args;
for (unsigned j = 0; j < cmds.size(); ++j)
args.push_back(std::make_pair(cmds[j].c_str(), cmds[j].length()));
args.emplace_back(cmds[j].c_str(), cmds[j].length());
this->Send(i, args);
}
@@ -223,7 +223,7 @@ class MyRedisService : public Provider
}
std::vector<Anope::string> args;
args.push_back("PSUBSCRIBE");
args.emplace_back("PSUBSCRIBE");
args.push_back(pattern);
this->SendCommand(sub, NULL, args);