1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 21: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
+2 -2
View File
@@ -949,7 +949,7 @@ class MyManager : public Manager, public Timer
continue;
}
packet->questions.push_back(Question(zone, QUERY_SOA));
packet->questions.emplace_back(zone, QUERY_SOA);
new NotifySocket(ip.find(':') != Anope::string::npos, packet);
}
@@ -1052,7 +1052,7 @@ class ModuleDNS : public Module
Anope::string nip = n->Get<Anope::string>("ip");
short nport = n->Get<short>("port");
notify.push_back(std::make_pair(nip, nport));
notify.emplace_back(nip, nport);
}
if (Anope::IsFile(nameserver))