re: replaced raw pointers in favor of unique_ptr in [HandshakeManager] and related classes.

This commit is contained in:
Matthew Toro 2026-04-04 20:49:05 -04:00
parent f238e682b3
commit 7d8163539c
6 changed files with 20 additions and 26 deletions

View file

@ -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)