summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-19 05:12:14 +0200
committerLioncash <mathew1800@gmail.com>2018-07-19 05:13:25 +0200
commit0b566f43a1f49121c0e4a9950a71319d60adccef (patch)
tree6381f046787c10fc21f8e5d6f686044b992ee85a /src/core
parentMerge pull request #691 from lioncash/guard (diff)
downloadyuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.tar
yuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.tar.gz
yuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.tar.bz2
yuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.tar.lz
yuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.tar.xz
yuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.tar.zst
yuzu-0b566f43a1f49121c0e4a9950a71319d60adccef.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/content_archive.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp
index 6cfef774d..d6b20c047 100644
--- a/src/core/file_sys/content_archive.cpp
+++ b/src/core/file_sys/content_archive.cpp
@@ -2,6 +2,9 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
+#include <utility>
+
#include "common/logging/log.h"
#include "core/file_sys/content_archive.h"
#include "core/file_sys/vfs_offset.h"
@@ -61,7 +64,7 @@ struct RomFSSuperblock {
};
static_assert(sizeof(RomFSSuperblock) == 0xE8, "RomFSSuperblock has incorrect size.");
-NCA::NCA(VirtualFile file_) : file(file_) {
+NCA::NCA(VirtualFile file_) : file(std::move(file_)) {
if (sizeof(NCAHeader) != file->ReadObject(&header))
LOG_CRITICAL(Loader, "File reader errored out during header read.");