[Cleanup] Cleanup uses of insert/push_back when a temp object is used. (#3170)

This commit is contained in:
Aeadoin
2023-04-03 16:45:01 -04:00
committed by GitHub
parent 2bb15271c5
commit f752b57a55
42 changed files with 104 additions and 104 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ int command_init(void)
for (const auto& w : working_cl) {
auto cs = command_settings.find(w.first);
if (cs == command_settings.end()) {
injected_command_settings.push_back(std::pair<std::string, uint8>(w.first, w.second->admin));
injected_command_settings.emplace_back(std::pair<std::string, uint8>(w.first, w.second->admin));
LogInfo(
"New Command [{}] found... Adding to `command_settings` table with admin [{}]...",
w.first,