From f0308151a85546f6a8f663b2b172293702e706a9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 6 Aug 2017 07:57:43 -0400 Subject: [PATCH] File: Make GetSize() a const member function --- Source/Core/Common/File.cpp | 2 +- Source/Core/Common/File.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/File.cpp b/Source/Core/Common/File.cpp index f3ede54fc2..9dfcdbd7d8 100644 --- a/Source/Core/Common/File.cpp +++ b/Source/Core/Common/File.cpp @@ -85,7 +85,7 @@ void IOFile::SetHandle(std::FILE* file) m_file = file; } -u64 IOFile::GetSize() +u64 IOFile::GetSize() const { if (IsOpen()) return File::GetSize(m_file); diff --git a/Source/Core/Common/File.h b/Source/Core/Common/File.h index 2b13da6bd6..3c9504b58a 100644 --- a/Source/Core/Common/File.h +++ b/Source/Core/Common/File.h @@ -74,7 +74,7 @@ public: bool Seek(s64 off, int origin); u64 Tell() const; - u64 GetSize(); + u64 GetSize() const; bool Resize(u64 size); bool Flush();