TAnimSourceInfo: std::move constructor parameter where applicable

Allows calling code to move into the constructor.
This commit is contained in:
Lioncash 2020-03-09 11:41:30 -04:00
parent 9fe671af99
commit cff12f0986
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class TAnimSourceInfo : public IAnimSourceInfo {
TSubAnimTypeToken<T> x4_token;
public:
TAnimSourceInfo(const TSubAnimTypeToken<T>& token) : x4_token(token) {}
explicit TAnimSourceInfo(TSubAnimTypeToken<T> token) : x4_token(std::move(token)) {}
bool HasPOIData() const override { return x4_token->HasPOIData(); }
const std::vector<CBoolPOINode>& GetBoolPOIStream() const override { return x4_token->GetBoolPOIStream(); }
const std::vector<CInt32POINode>& GetInt32POIStream() const override { return x4_token->GetInt32POIStream(); }