This commit is contained in:
XiaoFeng 2015-11-25 11:15:17 +08:00
parent 722f20c4b6
commit d0cd640ac8
3 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ public:
*/ */
void setForce2DQueue(bool force2D); void setForce2DQueue(bool force2D);
Vector<Mesh*>& getMeshes() { return _meshes; } const Vector<Mesh*>& getMeshes() const { return _meshes; }
const AABB& getAABB(bool world) const; const AABB& getAABB(bool world) const;
CC_CONSTRUCTOR_ACCESS: CC_CONSTRUCTOR_ACCESS:

View File

@ -600,7 +600,7 @@ std::string TextureCache::getCachedTextureInfo() const
return buffer; return buffer;
} }
void TextureCache::renameTextureWithKey(std::string srcName, std::string dstName) void TextureCache::renameTextureWithKey(const std::string srcName, const std::string dstName)
{ {
std::string key = srcName; std::string key = srcName;
auto it = _textures.find(key); auto it = _textures.find(key);

View File

@ -207,7 +207,7 @@ public:
void setDirty(bool dirty) { _dirty = dirty; } void setDirty(bool dirty) { _dirty = dirty; }
bool isDirty() const { return _dirty; } bool isDirty() const { return _dirty; }
void renameTextureWithKey(std::string srcName, std::string dstName); void renameTextureWithKey(const std::string srcName, const std::string dstName);
private: private: