Remove C++14 feature.

pull/4029/head
Kim Kulling 2021-08-29 18:35:44 +02:00
parent ceafa95610
commit c9d35b6edc
2 changed files with 3 additions and 2 deletions

View File

@ -133,7 +133,7 @@ static bool IsEmbeddedTexture( const std::string &filename ) {
D3MFOpcPackage::D3MFOpcPackage(IOSystem *pIOHandler, const std::string &rFile) :
mRootStream(nullptr),
mZipArchive() {
mZipArchive = std::make_unique<ZipArchiveIOSystem>(pIOHandler, rFile);
mZipArchive = new ZipArchiveIOSystem(pIOHandler, rFile);
if (!mZipArchive->isOpen()) {
throw DeadlyImportError("Failed to open file ", rFile, ".");
}
@ -185,6 +185,7 @@ D3MFOpcPackage::D3MFOpcPackage(IOSystem *pIOHandler, const std::string &rFile) :
D3MFOpcPackage::~D3MFOpcPackage() {
mZipArchive->Close(mRootStream);
delete mZipArchive;
mZipArchive = nullptr;
}

View File

@ -74,7 +74,7 @@ protected:
private:
IOStream* mRootStream;
std::unique_ptr<ZipArchiveIOSystem> mZipArchive;
ZipArchiveIOSystem *mZipArchive;
std::vector<aiTexture *> mEmbeddedTextures;
};