1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Minor fixes

This commit is contained in:
Michał Janiszewski
2017-12-03 23:45:43 +01:00
committed by Michael Steenbeek
parent cb162edcfe
commit 0a92e74ced
30 changed files with 70 additions and 101 deletions

View File

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