mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Replace new with make_unique in components
This commit is contained in:
parent
f84be8c3f9
commit
a95b6e050a
6 changed files with 16 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue