mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Minor fixes
This commit is contained in:
committed by
Michael Steenbeek
parent
cb162edcfe
commit
0a92e74ced
@@ -19,14 +19,16 @@
|
||||
#include "NetworkTypes.h"
|
||||
#include "NetworkPacket.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
std::unique_ptr<NetworkPacket> NetworkPacket::Allocate()
|
||||
{
|
||||
return std::unique_ptr<NetworkPacket>(new NetworkPacket); // change to make_unique in c++14
|
||||
return std::make_unique<NetworkPacket>(); // change to make_unique in c++14
|
||||
}
|
||||
|
||||
std::unique_ptr<NetworkPacket> NetworkPacket::Duplicate(NetworkPacket &packet)
|
||||
{
|
||||
return std::unique_ptr<NetworkPacket>(new NetworkPacket(packet)); // change to make_unique in c++14
|
||||
return std::make_unique<NetworkPacket>(packet); // change to make_unique in c++14
|
||||
}
|
||||
|
||||
uint8 * NetworkPacket::GetData()
|
||||
|
||||
Reference in New Issue
Block a user