diff --git a/src/Core/Resource/CMaterialSet.h b/src/Core/Resource/CMaterialSet.h index fb7fe7b8..fdeac3fa 100644 --- a/src/Core/Resource/CMaterialSet.h +++ b/src/Core/Resource/CMaterialSet.h @@ -17,9 +17,9 @@ public: CMaterialSet() = default; ~CMaterialSet() = default; - CMaterialSet* Clone() + std::unique_ptr Clone() { - CMaterialSet *pOut = new CMaterialSet(); + auto pOut = std::make_unique(); pOut->mMaterials.resize(mMaterials.size()); for (uint32 iMat = 0; iMat < mMaterials.size(); iMat++)