summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscUtils.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-04-11 14:55:41 -0500
committerGitHub <noreply@github.com>2026-04-11 14:55:41 -0500
commit33f62b0f9f36a3dfccc3ecfc13358899d0cc8036 (patch)
tree270bf5e13f299486c05d1f681e96dc5b774cc1e7 /Source/Core/DiscIO/DiscUtils.cpp
parent27e09633dee06f25d76b2e84048e80c57d6e6a87 (diff)
parentf6a67aa6e722350db3fc778e4f881cb60090faa1 (diff)
Merge pull request #14500 from Sintendo/span2
Replace `const std::vector&` arguments with `std::span`
Diffstat (limited to 'Source/Core/DiscIO/DiscUtils.cpp')
-rw-r--r--Source/Core/DiscIO/DiscUtils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/DiscUtils.cpp b/Source/Core/DiscIO/DiscUtils.cpp
index a22b97a466..e068229e57 100644
--- a/Source/Core/DiscIO/DiscUtils.cpp
+++ b/Source/Core/DiscIO/DiscUtils.cpp
@@ -5,6 +5,7 @@
#include <algorithm>
#include <optional>
+#include <span>
#include <string>
#include <vector>
@@ -155,7 +156,7 @@ static u64 GetBiggestReferencedOffset(const Volume& volume, const FileInfo& file
}
}
-u64 GetBiggestReferencedOffset(const Volume& volume, const std::vector<Partition>& partitions)
+u64 GetBiggestReferencedOffset(const Volume& volume, std::span<const Partition> partitions)
{
const u64 disc_header_size = volume.GetVolumeType() == Platform::GameCubeDisc ? 0x460 : 0x50000;
u64 biggest_offset = disc_header_size;