mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-09 07:59:40 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user