From cff12f0986145c2c62eef05bf0ae0c8fcb7e8c45 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Mar 2020 11:41:30 -0400 Subject: [PATCH] TAnimSourceInfo: std::move constructor parameter where applicable Allows calling code to move into the constructor. --- Runtime/Character/CFBStreamedAnimReader.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Character/CFBStreamedAnimReader.hpp b/Runtime/Character/CFBStreamedAnimReader.hpp index e58a91c8a..15af8800d 100644 --- a/Runtime/Character/CFBStreamedAnimReader.hpp +++ b/Runtime/Character/CFBStreamedAnimReader.hpp @@ -14,7 +14,7 @@ class TAnimSourceInfo : public IAnimSourceInfo { TSubAnimTypeToken x4_token; public: - TAnimSourceInfo(const TSubAnimTypeToken& token) : x4_token(token) {} + explicit TAnimSourceInfo(TSubAnimTypeToken token) : x4_token(std::move(token)) {} bool HasPOIData() const override { return x4_token->HasPOIData(); } const std::vector& GetBoolPOIStream() const override { return x4_token->GetBoolPOIStream(); } const std::vector& GetInt32POIStream() const override { return x4_token->GetInt32POIStream(); }