mirror of https://github.com/AxioDL/metaforce.git
CAnimSourceInfo: std::move TSubAnimTypeToken instance in constructor
Provides the same behavior, but allows calling code to move into the constructor.
This commit is contained in:
parent
3cec19437a
commit
79565d7f52
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
|
|
||||||
CAnimSourceInfo::CAnimSourceInfo(const TSubAnimTypeToken<CAnimSource>& token) : x4_token(token) {}
|
CAnimSourceInfo::CAnimSourceInfo(TSubAnimTypeToken<CAnimSource> token) : x4_token(std::move(token)) {}
|
||||||
|
|
||||||
bool CAnimSourceInfo::HasPOIData() const { return x4_token->x58_evntData.HasReference(); }
|
bool CAnimSourceInfo::HasPOIData() const { return x4_token->x58_evntData.HasReference(); }
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class CAnimSourceInfo : public IAnimSourceInfo {
|
||||||
TSubAnimTypeToken<CAnimSource> x4_token;
|
TSubAnimTypeToken<CAnimSource> x4_token;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CAnimSourceInfo(const TSubAnimTypeToken<CAnimSource>& token);
|
explicit CAnimSourceInfo(TSubAnimTypeToken<CAnimSource> token);
|
||||||
bool HasPOIData() const override;
|
bool HasPOIData() const override;
|
||||||
const std::vector<CBoolPOINode>& GetBoolPOIStream() const override;
|
const std::vector<CBoolPOINode>& GetBoolPOIStream() const override;
|
||||||
const std::vector<CInt32POINode>& GetInt32POIStream() const override;
|
const std::vector<CInt32POINode>& GetInt32POIStream() const override;
|
||||||
|
|
Loading…
Reference in New Issue