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:
Lioncash 2020-03-09 11:11:25 -04:00
parent 3cec19437a
commit 79565d7f52
2 changed files with 2 additions and 2 deletions

View File

@ -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(); }

View File

@ -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;