mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +00:00
[Cleanup] Cleanup uses of insert/push_back when a temp object is used. (#3170)
This commit is contained in:
1 parent
2bb15271c5
commit
f752b57a55
42 files changed
+104
-104
No files matched your search
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user