mirror of https://github.com/axmolengine/axmol.git
declare explicitly FileUtilsApple destructor
This commit is contained in:
parent
fc9880ab49
commit
79b9a191d0
|
@ -46,6 +46,7 @@ class CC_DLL FileUtilsApple : public FileUtils
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FileUtilsApple();
|
FileUtilsApple();
|
||||||
|
virtual ~FileUtilsApple();
|
||||||
/* override functions */
|
/* override functions */
|
||||||
virtual std::string getWritablePath() const override;
|
virtual std::string getWritablePath() const override;
|
||||||
virtual std::string getFullPathForDirectoryAndFilename(const std::string& directory, const std::string& filename) const override;
|
virtual std::string getFullPathForDirectoryAndFilename(const std::string& directory, const std::string& filename) const override;
|
||||||
|
|
|
@ -320,6 +320,8 @@ static void addObjectToNSDict(const std::string& key, const Value& value, NSMuta
|
||||||
FileUtilsApple::FileUtilsApple() : pimpl_(new IMPL([NSBundle mainBundle])) {
|
FileUtilsApple::FileUtilsApple() : pimpl_(new IMPL([NSBundle mainBundle])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FileUtilsApple::~FileUtilsApple() = default;
|
||||||
|
|
||||||
#if CC_FILEUTILS_APPLE_ENABLE_OBJC
|
#if CC_FILEUTILS_APPLE_ENABLE_OBJC
|
||||||
void FileUtilsApple::setBundle(NSBundle* bundle) {
|
void FileUtilsApple::setBundle(NSBundle* bundle) {
|
||||||
pimpl_->setBundle(bundle);
|
pimpl_->setBundle(bundle);
|
||||||
|
|
Loading…
Reference in New Issue