refactor: use of unique_ptr instead of new
This commit is contained in:
@@ -25,7 +25,7 @@ void PacketDispatcher::UnregisterHandler(PacketHandler* handler) {
|
||||
}
|
||||
}
|
||||
|
||||
void PacketDispatcher::Dispatch(Packet* packet) {
|
||||
void PacketDispatcher::Dispatch(const PacketPtr& packet) {
|
||||
if (!packet) return;
|
||||
|
||||
PacketType type = packet->getType();
|
||||
|
||||
Reference in New Issue
Block a user