forked from ShuriZma/suyu
1
0
Fork 0

file_sys/nca_patch: Amend constructor initializer list order

Orders the elements in the initializer list in the order they're
specified in the class. This prevents compiler warnings about
initialization order.
This commit is contained in:
Lioncash 2018-09-06 14:00:09 -04:00
parent b155b3ef81
commit 54724fe918
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ BKTR::BKTR(VirtualFile base_romfs_, VirtualFile bktr_romfs_, RelocationBlock rel
std::vector<SubsectionBucket> subsection_buckets_, bool is_encrypted_, std::vector<SubsectionBucket> subsection_buckets_, bool is_encrypted_,
Core::Crypto::Key128 key_, u64 base_offset_, u64 ivfc_offset_, Core::Crypto::Key128 key_, u64 base_offset_, u64 ivfc_offset_,
std::array<u8, 8> section_ctr_) std::array<u8, 8> section_ctr_)
: base_romfs(std::move(base_romfs_)), bktr_romfs(std::move(bktr_romfs_)), : relocation(relocation_), relocation_buckets(std::move(relocation_buckets_)),
relocation(relocation_), relocation_buckets(std::move(relocation_buckets_)),
subsection(subsection_), subsection_buckets(std::move(subsection_buckets_)), subsection(subsection_), subsection_buckets(std::move(subsection_buckets_)),
base_romfs(std::move(base_romfs_)), bktr_romfs(std::move(bktr_romfs_)),
encrypted(is_encrypted_), key(key_), base_offset(base_offset_), ivfc_offset(ivfc_offset_), encrypted(is_encrypted_), key(key_), base_offset(base_offset_), ivfc_offset(ivfc_offset_),
section_ctr(section_ctr_) { section_ctr(section_ctr_) {
for (size_t i = 0; i < relocation.number_buckets - 1; ++i) { for (size_t i = 0; i < relocation.number_buckets - 1; ++i) {