浏览代码

fixed the make_unique

iamAdrianIusca 5 年之前
父节点
当前提交
a65bac27e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/Obj/ObjFileParser.cpp

+ 1 - 1
code/Obj/ObjFileParser.cpp

@@ -85,7 +85,7 @@ ObjFileParser::ObjFileParser( IOStreamBuffer<char> &streamBuffer, const std::str
     std::fill_n(m_buffer, Buffersize,0);
     std::fill_n(m_buffer, Buffersize,0);
 
 
     // Create the model instance to store all the data
     // Create the model instance to store all the data
-    m_pModel = std::make_unique<ObjFile::Model>();
+    m_pModel.reset(new ObjFile::Model());
     m_pModel->m_ModelName = modelName;
     m_pModel->m_ModelName = modelName;
 
 
     // create default material and store it
     // create default material and store it