From d220e33862c68404efb66f971d778fa6fdb762e1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 27 May 2019 10:33:02 -0400 Subject: [PATCH] DiscIO/VolumeVerifier: Make no-argument overload of GetBiggestUsedOffset() const The overload taking a partition is already a const member function, so this one can be turned into one as well. --- Source/Core/DiscIO/VolumeVerifier.cpp | 2 +- Source/Core/DiscIO/VolumeVerifier.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index e7d325d918..9389ae0fbf 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -446,7 +446,7 @@ void VolumeVerifier::CheckDiscSize() } } -u64 VolumeVerifier::GetBiggestUsedOffset() +u64 VolumeVerifier::GetBiggestUsedOffset() const { std::vector partitions = m_volume.GetPartitions(); if (partitions.empty()) diff --git a/Source/Core/DiscIO/VolumeVerifier.h b/Source/Core/DiscIO/VolumeVerifier.h index f302891431..31a4e591d9 100644 --- a/Source/Core/DiscIO/VolumeVerifier.h +++ b/Source/Core/DiscIO/VolumeVerifier.h @@ -99,7 +99,7 @@ private: bool ShouldHaveMasterpiecePartitions() const; bool ShouldBeDualLayer() const; void CheckDiscSize(); - u64 GetBiggestUsedOffset(); + u64 GetBiggestUsedOffset() const; u64 GetBiggestUsedOffset(const FileInfo& file_info) const; void CheckMisc(); void SetUpHashing();