diff options
| author | bunnei <bunneidev@gmail.com> | 2018-07-19 08:41:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-19 08:41:42 -0700 |
| commit | a0c32fc161d4e49e6d08726b71a6bf1ea8335f0d (patch) | |
| tree | 80dd3e8d6fd6636cc5b0bfc7e9d750b4b74ae513 /src/core/file_sys/content_archive.cpp | |
| parent | f15104730ff793dcf3e6756b6cc0855312dbbaa1 (diff) | |
| parent | 9eb43dc910d9cff1b796271408bd77121e381e95 (diff) | |
Merge pull request #701 from lioncash/moving
content_archive: Minor changes
Diffstat (limited to 'src/core/file_sys/content_archive.cpp')
| -rw-r--r-- | src/core/file_sys/content_archive.cpp | 5 |
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 6cfef774de..d6b20c0476 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."); |
