mirror of https://github.com/axmolengine/axmol.git
Improve performance with std::move
This commit is contained in:
parent
5d64474cfb
commit
2c4f0c7278
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue