From a68f78ab94c6738ba94174164c38edb3dfdf8387 Mon Sep 17 00:00:00 2001 From: Malcolm Tyrrell Date: Mon, 2 Nov 2020 15:03:17 +0000 Subject: [PATCH] C++11 --- test/unit/utFindDegenerates.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/utFindDegenerates.cpp b/test/unit/utFindDegenerates.cpp index 9ad9a275d..280a5199d 100644 --- a/test/unit/utFindDegenerates.cpp +++ b/test/unit/utFindDegenerates.cpp @@ -43,6 +43,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "../../include/assimp/scene.h" #include "PostProcessing/FindDegenerates.h" +#include + using namespace std; using namespace Assimp; @@ -153,7 +155,7 @@ namespace { std::unique_ptr getDegenerateMesh() { - std::unique_ptr mesh = std::make_unique(); + std::unique_ptr mesh(new aiMesh); mesh->mNumVertices = 2; mesh->mVertices = new aiVector3D[2]; mesh->mVertices[0] = aiVector3D{ 0.0f, 0.0f, 0.0f }; @@ -174,7 +176,7 @@ TEST_F(FindDegeneratesProcessTest, meshRemoval) { mProcess->EnableInstantRemoval(true); mProcess->ExecuteOnMesh(mMesh); - std::unique_ptr scene = std::make_unique(); + std::unique_ptr scene(new aiScene); scene->mNumMeshes = 5; scene->mMeshes = new aiMesh*[5];