From 511ee30b6e4f9f73ea5a614fd3e484a6c4f46196 Mon Sep 17 00:00:00 2001 From: oleg-akatsuki Date: Tue, 9 Sep 2014 11:34:48 +0900 Subject: [PATCH] Move constructor from private to public In my project I want to add extra functionality to FileUtils. For security reasons I make FileUtils function that can extract encoded data directly to memory without storing it on disk. So I am trying to use FileUtilsAndroid as base class, but it is impossible as constructor is hidden as private member. I offer to move constructor to either public or protected to make it possible to use FileUtilsAndroid as base class. Another way to solve the problem is to remove constructor as FileUtilsApple does not have a constructor. --- cocos/platform/android/CCFileUtilsAndroid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/platform/android/CCFileUtilsAndroid.h b/cocos/platform/android/CCFileUtilsAndroid.h index a9bb766b92..2b461d49b4 100644 --- a/cocos/platform/android/CCFileUtilsAndroid.h +++ b/cocos/platform/android/CCFileUtilsAndroid.h @@ -47,8 +47,8 @@ NS_CC_BEGIN class CC_DLL FileUtilsAndroid : public FileUtils { friend class FileUtils; - FileUtilsAndroid(); public: + FileUtilsAndroid(); /** * @js NA * @lua NA