Improve performance with std::move

This commit is contained in:
涓€绾跨伒 2022-08-09 13:21:53 +08:00 committed by GitHub
parent 5d64474cfb
commit 2c4f0c7278
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ void SpriteFrameCacheHelper::retainSpriteFrames(std::string_view plistPath)
vec.emplace_back(spriteFrame); vec.emplace_back(spriteFrame);
AX_SAFE_RETAIN(spriteFrame); AX_SAFE_RETAIN(spriteFrame);
} }
_usingSpriteFrames[plistPath] = vec; _usingSpriteFrames[plistPath] = std::move(vec);
} }
void SpriteFrameCacheHelper::releaseSpriteFrames(std::string_view plistPath) void SpriteFrameCacheHelper::releaseSpriteFrames(std::string_view plistPath)