diff options
author | Tony Wasserka <neobrainx@gmail.com> | 2014-12-20 15:07:47 +0100 |
---|---|---|
committer | Tony Wasserka <neobrainx@gmail.com> | 2014-12-20 15:07:47 +0100 |
commit | c2753d37a743e48548a6c792a0ec2278591f79a0 (patch) | |
tree | f456dd3613a1916f492b58013be929b7983b29c5 /src/core/file_sys | |
parent | f1309e6bf0d29cc0f71f9864ea7e2c1dc62eb23b (diff) | |
parent | 98a9aba46f1b1d3705f9387f028277fd0e5ba98d (diff) |
Merge pull request #317 from yuriks/make_unique
Add a clone of std::make_unique and revert C++14 requirement
Diffstat (limited to 'src/core/file_sys')
-rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index 0709b62a..1e3e9dc6 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp @@ -5,6 +5,7 @@ #include <memory> #include "common/common_types.h" +#include "common/make_unique.h" #include "core/file_sys/archive_romfs.h" #include "core/file_sys/directory_romfs.h" @@ -29,7 +30,7 @@ Archive_RomFS::Archive_RomFS(const Loader::AppLoader& app_loader) { * @return Opened file, or nullptr */ std::unique_ptr<FileBackend> Archive_RomFS::OpenFile(const Path& path, const Mode mode) const { - return std::make_unique<File_RomFS>(this); + return Common::make_unique<File_RomFS>(this); } /** @@ -78,7 +79,7 @@ bool Archive_RomFS::RenameDirectory(const FileSys::Path& src_path, const FileSys * @return Opened directory, or nullptr */ std::unique_ptr<DirectoryBackend> Archive_RomFS::OpenDirectory(const Path& path) const { - return std::make_unique<Directory_RomFS>(); + return Common::make_unique<Directory_RomFS>(); } } // namespace FileSys |