From 777a50cb64153dbf1657a91607f51d765a6ef7e1 Mon Sep 17 00:00:00 2001 From: "Adam.Fandrejewski" Date: Thu, 17 Jan 2019 09:56:11 +0100 Subject: [PATCH] Replaced C++ 14 make_unique with C++ 11 compliant code --- components/vfs/bsaarchive.cpp | 5 +++-- components/vfs/bsaarchive.hpp | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/vfs/bsaarchive.cpp b/components/vfs/bsaarchive.cpp index 76579a6f67..268a530472 100644 --- a/components/vfs/bsaarchive.cpp +++ b/components/vfs/bsaarchive.cpp @@ -1,5 +1,6 @@ #include "bsaarchive.hpp" #include +#include namespace VFS { @@ -9,10 +10,10 @@ BsaArchive::BsaArchive(const std::string &filename) Bsa::BsaVersion bsaVersion = Bsa::TES4BSAFile::detectVersion(filename); if (bsaVersion == Bsa::BSAVER_TES4PLUS) { - mFile = std::make_unique(); + mFile = std::unique_ptr(new Bsa::TES4BSAFile()); } else { - mFile = std::make_unique(); + mFile = std::unique_ptr(new Bsa::BSAFile()); } mFile->open(filename); diff --git a/components/vfs/bsaarchive.hpp b/components/vfs/bsaarchive.hpp index 5a859c72fb..a87f278c76 100644 --- a/components/vfs/bsaarchive.hpp +++ b/components/vfs/bsaarchive.hpp @@ -4,7 +4,6 @@ #include "archive.hpp" #include -#include namespace VFS {