diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-17 15:51:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 15:51:42 +0200 |
commit | c3d2956ba588a4559fabc36a0c1fc7dd28279314 (patch) | |
tree | b8210f994441a20ab08499df442e15fb9afaaf30 /tests/SchematicFileSerializer | |
parent | Add some const qualifiers to functions (#4874) (diff) | |
download | cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.gz cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.bz2 cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.lz cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.xz cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.zst cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.zip |
Diffstat (limited to 'tests/SchematicFileSerializer')
-rw-r--r-- | tests/SchematicFileSerializer/Stubs.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/SchematicFileSerializer/Stubs.cpp b/tests/SchematicFileSerializer/Stubs.cpp index 93fb5f2f6..882175754 100644 --- a/tests/SchematicFileSerializer/Stubs.cpp +++ b/tests/SchematicFileSerializer/Stubs.cpp @@ -21,24 +21,17 @@ cBlockInfo::cBlockInfo() -void cBlockInfo::sHandlerDeleter::operator () (cBlockHandler * a_Handler) +cBlockInfo::cBlockInfoArray::cBlockInfoArray() { - delete a_Handler; } -cBlockInfo::cBlockInfoArray::cBlockInfoArray() +cBlockHandler * cBlockInfo::GetHandler(BLOCKTYPE a_Type) { - cBlockInfoArray & BlockInfos = *this; - // The piece-loading code uses the handlers for rotations, so we need valid handlers - // Insert dummy handlers: - for (size_t i = 0; i < BlockInfos.size(); i++) - { - BlockInfos[i].m_Handler.reset(new cBlockHandler(static_cast<BLOCKTYPE>(i))); - } + return nullptr; } |