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.
This commit is contained in:
oleg-akatsuki 2014-09-09 11:34:48 +09:00
parent c69707bce4
commit 511ee30b6e
1 changed files with 1 additions and 1 deletions

View File

@ -47,8 +47,8 @@ NS_CC_BEGIN
class CC_DLL FileUtilsAndroid : public FileUtils
{
friend class FileUtils;
FileUtilsAndroid();
public:
FileUtilsAndroid();
/**
* @js NA
* @lua NA