diff --git a/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp b/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp index 3c6abd6866..cc6250dbf5 100644 --- a/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp +++ b/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp @@ -72,7 +72,7 @@ void SpriteFrameCacheHelper::retainSpriteFrames(std::string_view plistPath) vec.emplace_back(spriteFrame); AX_SAFE_RETAIN(spriteFrame); } - _usingSpriteFrames[plistPath] = vec; + _usingSpriteFrames[plistPath] = std::move(vec); } void SpriteFrameCacheHelper::releaseSpriteFrames(std::string_view plistPath)