Replace unique_ptr with raw pointer

pull/3385/head
Joshua Hyatt 2020-08-29 23:06:33 -06:00
parent c769f8d4ad
commit cc2613f264
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ void FBXImporter::SetupProperties(const Importer *pImp) {
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
// Imports the given file into the given scene structure. // Imports the given file into the given scene structure.
void FBXImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSystem *pIOHandler) { void FBXImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSystem *pIOHandler) {
std::unique_ptr<IOStream> stream(pIOHandler->Open(pFile, "rb")); IOStream* stream = pIOHandler->Open(pFile, "rb");
if (!stream) { if (!stream) {
ThrowException("Could not open file for reading"); ThrowException("Could not open file for reading");
} }