yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

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.
This commit is contained in:
Lioncash 2018-10-16 13:16:02 -04:00
parent 441b5b97bd
commit 871350ae35
1 changed files with 1 additions and 2 deletions

View File

@ -103,8 +103,7 @@ static bool IsValidNCA(const NCAHeader& header) {
} }
NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_offset) NCA::NCA(VirtualFile file_, VirtualFile bktr_base_romfs_, u64 bktr_base_ivfc_offset)
: file(std::move(file_)), : file(std::move(file_)), bktr_base_romfs(std::move(bktr_base_romfs_)) {
bktr_base_romfs(bktr_base_romfs_ ? std::move(bktr_base_romfs_) : nullptr) {
if (file == nullptr) { if (file == nullptr) {
status = Loader::ResultStatus::ErrorNullFile; status = Loader::ResultStatus::ErrorNullFile;
return; return;