mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-17 10:48:21 +00:00
[Cleanup] Cleanup uses of insert/push_back when a temp object is used. (#3170)
This commit is contained in:
@@ -52,7 +52,7 @@ LoginServerList::~LoginServerList() {
|
||||
void LoginServerList::Add(const char* iAddress, uint16 iPort, const char* Account, const char* Password, bool Legacy)
|
||||
{
|
||||
auto loginserver = new LoginServer(iAddress, iPort, Account, Password, Legacy);
|
||||
m_list.push_back(std::unique_ptr<LoginServer>(loginserver));
|
||||
m_list.emplace_back(std::unique_ptr<LoginServer>(loginserver));
|
||||
}
|
||||
|
||||
bool LoginServerList::SendStatus() {
|
||||
|
||||
Reference in New Issue
Block a user