summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-10-16 13:16:02 -0400
committerGravatar Lioncash2018-10-16 13:22:31 -0400
commit871350ae357de050a9588ff84b7b1b7539467234 (patch)
treeba9f17acd7b426ced09803ad298d2b7bbb686be6 /src
parentcontent_archive: Make IsValidNCA() an internally linked function (diff)
downloadyuzu-871350ae357de050a9588ff84b7b1b7539467234.tar.gz
yuzu-871350ae357de050a9588ff84b7b1b7539467234.tar.xz
yuzu-871350ae357de050a9588ff84b7b1b7539467234.zip
content_archive: Simpify assignment of bktr_base_romfs in the constructor
std::move doesn't actually dereference the data, so it doesn't matter whether or not the type is null.
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/content_archive.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp
index 6ce1cb0ae..6c356d85d 100644
--- a/src/core/file_sys/content_archive.cpp
+++ b/src/core/file_sys/content_archive.cpp
@@ -103,8 +103,7 @@ static bool IsValidNCA(const NCAHeader& header) {
103} 103}
104 104
105NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_offset) 105NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_offset)
106 : file(std::move(file_)), 106 : file(std::move(file_)), bktr_base_romfs(std::move(bktr_base_romfs_)) {
107 bktr_base_romfs(bktr_base_romfs_ ? std::move(bktr_base_romfs_) : nullptr) {
108 if (file == nullptr) { 107 if (file == nullptr) {
109 status = Loader::ResultStatus::ErrorNullFile; 108 status = Loader::ResultStatus::ErrorNullFile;
110 return; 109 return;