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

This commit is contained in:
Aeadoin authored and GitHub committed 2023-04-03 16:45:01 -04:00
1 parent 2bb15271c5
commit f752b57a55
42 files changed
+104 -104

No files matched your search

+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,