Browse Source

3MF: Replace ScopeGuard with std::unique_ptr

Turo Lamminen 7 years ago
parent
commit
6f50be82aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      code/D3MFImporter.cpp

+ 2 - 2
code/D3MFImporter.cpp

@@ -106,7 +106,7 @@ public:
 private:
     aiNode* ReadObject(aiScene* scene)
     {
-        ScopeGuard<aiNode> node(new aiNode());
+        std::unique_ptr<aiNode> node(new aiNode());
 
         std::vector<unsigned long> meshIds;
 
@@ -146,7 +146,7 @@ private:
 
         std::copy(meshIds.begin(), meshIds.end(), node->mMeshes);
 
-        return node.dismiss();
+        return node.release();
 
     }