mirror of https://github.com/AxioDL/metaforce.git
CAnimTreeAnimReaderContainer: std::move shared_ptr in constructor
Provides the same behavior, but without a redundant atomic reference count increment and decrement.
This commit is contained in:
parent
d93df18a37
commit
280e4ce07d
|
@ -6,7 +6,7 @@ namespace urde {
|
|||
|
||||
CAnimTreeAnimReaderContainer::CAnimTreeAnimReaderContainer(std::string_view name, std::shared_ptr<IAnimReader> reader,
|
||||
u32 dbIdx)
|
||||
: CAnimTreeNode(name), x14_reader(reader), x1c_animDbIdx(dbIdx) {}
|
||||
: CAnimTreeNode(name), x14_reader(std::move(reader)), x1c_animDbIdx(dbIdx) {}
|
||||
|
||||
u32 CAnimTreeAnimReaderContainer::Depth() const { return 1; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue