Replaced remaining MakeUnique
parent
b12e5ad7cd
commit
ee9f9d875d
|
@ -541,7 +541,7 @@ bool CApplication::Create()
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
GetLogger()->Info("No sound support.\n");
|
GetLogger()->Info("No sound support.\n");
|
||||||
m_sound = MakeUnique<CSoundInterface>();
|
m_sound = std::make_unique<CSoundInterface>();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_sound->Create();
|
m_sound->Create();
|
||||||
|
@ -685,7 +685,7 @@ bool CApplication::Create()
|
||||||
}
|
}
|
||||||
//else
|
//else
|
||||||
//{
|
//{
|
||||||
// m_device = MakeUnique<Gfx::CNullDevice>();
|
// m_device = std::make_unique<Gfx::CNullDevice>();
|
||||||
//}
|
//}
|
||||||
|
|
||||||
if (! m_device->Create() )
|
if (! m_device->Create() )
|
||||||
|
|
|
@ -69,7 +69,7 @@ void CLightManagerUT::SetUp()
|
||||||
m_engine = m_mocks.Mock<CEngine>();
|
m_engine = m_mocks.Mock<CEngine>();
|
||||||
m_device = m_mocks.Mock<CDevice>();
|
m_device = m_mocks.Mock<CDevice>();
|
||||||
|
|
||||||
m_lightManager = MakeUnique<CLightManager>(m_engine);
|
m_lightManager = std::make_unique<CLightManager>(m_engine);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CLightManagerUT::PrepareLightTesting(int maxLights, glm::vec3 eyePos)
|
void CLightManagerUT::PrepareLightTesting(int maxLights, glm::vec3 eyePos)
|
||||||
|
|
Loading…
Reference in New Issue