Refactored readBytes() and readUBytes() to return std::unique_ptr

This commit is contained in:
Jack Andersen
2015-08-05 12:20:15 -10:00
parent f06afb429c
commit 02e7bb3fc6
17 changed files with 100 additions and 134 deletions

View File

@@ -3,8 +3,8 @@
namespace Athena
{
MCSlot::MCSlot(atUint8* data, atUint32 length)
: ZQuestFile(ZQuestFile::MC, Endian::LittleEndian, data, length)
MCSlot::MCSlot(std::unique_ptr<atUint8[]>&& data, atUint32 length)
: ZQuestFile(ZQuestFile::MC, Endian::LittleEndian, std::move(data), length)
{
}