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];