mirror of https://github.com/axmolengine/axmol.git
use "const string &" in SpriteFrameCache
This commit is contained in:
parent
c49b60ae40
commit
94ab41ceb3
|
@ -80,7 +80,7 @@ SpriteFrameCache::~SpriteFrameCache()
|
|||
CC_SAFE_DELETE(_loadedFileNames);
|
||||
}
|
||||
|
||||
void SpriteFrameCache::parseIntegerList(const std::string string, std::vector<int> &res)
|
||||
void SpriteFrameCache::parseIntegerList(const std::string &string, std::vector<int> &res)
|
||||
{
|
||||
std::string delim(" ");
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ protected:
|
|||
void removeSpriteFramesFromDictionary(ValueMap& dictionary);
|
||||
|
||||
/** Parses list of space-separated integers */
|
||||
void parseIntegerList(const std::string string, std::vector<int> &res);
|
||||
void parseIntegerList(const std::string &string, std::vector<int> &res);
|
||||
|
||||
/** Configures PolygonInfo class with the passed sizes + triangles */
|
||||
void initializePolygonInfo(const Size &textureSize,
|
||||
|
|
Loading…
Reference in New Issue