Refactors models and materials, part 2, replaces raw pointer by unique_ptr and adds test.

Comments By: phosit
Differential Revision: https://code.wildfiregames.com/D5128
This was SVN commit r27846.
This commit is contained in:
vladislavbelov
2023-09-21 19:00:28 +00:00
parent 5214a4c073
commit c86d3bbb56
14 changed files with 141 additions and 62 deletions
+2 -2
View File
@@ -281,9 +281,9 @@ void CModelParticleEmitter::SetEntityVariable(const std::string& name, float val
m_Emitter->SetEntityVariable(name, value);
}
CModelAbstract* CModelParticleEmitter::Clone() const
std::unique_ptr<CModelAbstract> CModelParticleEmitter::Clone() const
{
return new CModelParticleEmitter(m_Type);
return std::make_unique<CModelParticleEmitter>(m_Type);
}
void CModelParticleEmitter::CalcBounds()