diff options
| author | Tilka <tilkax@gmail.com> | 2025-04-20 22:07:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-20 22:07:58 +0100 |
| commit | 45ed4b2be915025dcda61efcd340b7093c1d1903 (patch) | |
| tree | 3bf7ffe2feff08610ac01e38375c3658b7adb589 /Source/Core/DiscIO | |
| parent | 2adf3449f3ae9492b4b5d9d24c17e51cad2220a5 (diff) | |
| parent | 77b42709816946a9fa80cdff03f05b88d54b8178 (diff) | |
Merge pull request #13541 from tygyh/DiscIO-Remove-redundant-zero-initializers-in-aggregate-initializations
DiscIO: Remove redundant zero initializers in aggregate initializations
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/RiivolutionPatcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/RiivolutionPatcher.cpp b/Source/Core/DiscIO/RiivolutionPatcher.cpp index 9dce9e9a8f..7269a37b6f 100644 --- a/Source/Core/DiscIO/RiivolutionPatcher.cpp +++ b/Source/Core/DiscIO/RiivolutionPatcher.cpp @@ -210,7 +210,7 @@ FileDataLoaderHostFS::MakeContentSource(std::string_view external_relative_path, { auto path = MakeAbsoluteFromRelative(external_relative_path); if (!path) - return BuilderContentSource{disc_offset, external_size, ContentFixedByte{0}}; + return BuilderContentSource{disc_offset, external_size, ContentFixedByte{}}; return BuilderContentSource{disc_offset, external_size, ContentFile{std::move(*path), external_offset}}; } @@ -284,7 +284,7 @@ static void ApplyPatchToFile(const Patch& patch, DiscIO::FSTBuilderNode* file_no { // Insert an padding area between the old file and the patch data. content.emplace_back(BuilderContentSource{file_node->m_size, patch_start - file_node->m_size, - ContentFixedByte{0}}); + ContentFixedByte{}}); } insert_where = content.size(); @@ -340,7 +340,7 @@ static void ApplyPatchToFile(const Patch& patch, DiscIO::FSTBuilderNode* file_no if (external_filesize < patch_size) { BuilderContentSource padding{patch_start + external_filesize, patch_size - external_filesize, - ContentFixedByte{0}}; + ContentFixedByte{}}; content.emplace(content.begin() + insert_where, std::move(padding)); } |
