re: replaced raw pointers in favor of unique_ptr in [HandshakeManager] and related classes.
This commit is contained in:
parent
f238e682b3
commit
7d8163539c
6 changed files with 20 additions and 26 deletions
|
|
@ -413,9 +413,9 @@ void PendingConnection::initAuth()
|
|||
{
|
||||
handshakeManager = new HandshakeManager(true);
|
||||
if (server->authMode == "session")
|
||||
handshakeManager->registerModule(new SessionAuthModule());
|
||||
handshakeManager->registerModule(std::make_unique<SessionAuthModule>());
|
||||
else
|
||||
handshakeManager->registerModule(new OfflineAuthModule());
|
||||
handshakeManager->registerModule(std::make_unique<OfflineAuthModule>());
|
||||
}
|
||||
|
||||
void PendingConnection::handleAuth(const shared_ptr<AuthPacket> &packet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue