2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-12 18:45:52 +00:00

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

View File

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