Replace new with make_unique in components

This commit is contained in:
Evil Eye 2022-05-29 13:24:32 +02:00
parent f84be8c3f9
commit a95b6e050a
6 changed files with 16 additions and 17 deletions

View file

@ -69,7 +69,7 @@ Bone* Skeleton::getBone(const std::string &name)
if (!mRootBone.get())
{
mRootBone.reset(new Bone);
mRootBone = std::make_unique<Bone>();
}
Bone* bone = mRootBone.get();