use "const string &" in SpriteFrameCache

This commit is contained in:
Joachim Grill 2015-10-26 09:36:01 +01:00
parent c49b60ae40
commit 94ab41ceb3
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ SpriteFrameCache::~SpriteFrameCache()
CC_SAFE_DELETE(_loadedFileNames); 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(" "); std::string delim(" ");

View File

@ -250,7 +250,7 @@ protected:
void removeSpriteFramesFromDictionary(ValueMap& dictionary); void removeSpriteFramesFromDictionary(ValueMap& dictionary);
/** Parses list of space-separated integers */ /** 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 */ /** Configures PolygonInfo class with the passed sizes + triangles */
void initializePolygonInfo(const Size &textureSize, void initializePolygonInfo(const Size &textureSize,