From db0fe6097457b63540cb24aad811e70434e4bead Mon Sep 17 00:00:00 2001 From: boyu0 Date: Tue, 25 Mar 2014 11:13:44 +0800 Subject: [PATCH] closed #3804: Change Image private function and variable to protected, for the subclasses can use them. --- cocos/2d/platform/CCImage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/2d/platform/CCImage.h b/cocos/2d/platform/CCImage.h index 755c03bcec..2f0be6d8fa 100644 --- a/cocos/2d/platform/CCImage.h +++ b/cocos/2d/platform/CCImage.h @@ -155,7 +155,7 @@ protected: bool saveImageToPNG(const std::string& filePath, bool isToRGB = true); bool saveImageToJPG(const std::string& filePath); -private: +protected: /** @brief Determine how many mipmaps can we have. Its same as define but it respects namespaces @@ -175,7 +175,7 @@ private: std::string _filePath; -private: +protected: // noncopyable Image(const Image& rImg); Image & operator=(const Image&);