Improve performance with std::move

This commit is contained in:
一线灵 2022-08-09 13:21:53 +08:00 committed by GitHub
parent f7a6f81ae2
commit a5b1f8efaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
AX_SAFE_RETAIN(spriteFrame);
}
_usingSpriteFrames[plistPath] = vec;
_usingSpriteFrames[plistPath] = std::move(vec);
}
void SpriteFrameCacheHelper::releaseSpriteFrames(std::string_view plistPath)