summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-05-29 17:10:06 -0400
committerLioncash <mathew1800@gmail.com>2015-05-29 17:10:06 -0400
commitff29ffeb66a034937132bba196d2577b4e3e2173 (patch)
treec4386f4c0cd8dcde618287948fdfe8dc309da445 /Source/Core/DiscIO
parentd1d284e784f85463760cd75095595d1705436282 (diff)
parent9a000f40854a69a2fa0f12e1d48467a1be5c6c82 (diff)
Merge pull request #2483 from JosJuice/readwiinames-const
Volume: Mark ReadWiiNames parameter as const
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/Volume.h2
-rw-r--r--Source/Core/DiscIO/VolumeCommon.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Volume.h b/Source/Core/DiscIO/Volume.h
index d55a425d91..26c11e678c 100644
--- a/Source/Core/DiscIO/Volume.h
+++ b/Source/Core/DiscIO/Volume.h
@@ -114,7 +114,7 @@ protected:
return CP1252ToUTF8(string);
}
- static std::map<IVolume::ELanguage, std::string> ReadWiiNames(std::vector<u8>& data);
+ static std::map<IVolume::ELanguage, std::string> ReadWiiNames(const std::vector<u8>& data);
static const size_t NUMBER_OF_LANGUAGES = 10;
static const size_t NAME_STRING_LENGTH = 42;
diff --git a/Source/Core/DiscIO/VolumeCommon.cpp b/Source/Core/DiscIO/VolumeCommon.cpp
index cb4386af68..f503e259ca 100644
--- a/Source/Core/DiscIO/VolumeCommon.cpp
+++ b/Source/Core/DiscIO/VolumeCommon.cpp
@@ -57,7 +57,7 @@ std::vector<u32> IVolume::GetBanner(int* width, int* height) const
return image_buffer;
}
-std::map<IVolume::ELanguage, std::string> IVolume::ReadWiiNames(std::vector<u8>& data)
+std::map<IVolume::ELanguage, std::string> IVolume::ReadWiiNames(const std::vector<u8>& data)
{
std::map<IVolume::ELanguage, std::string> names;
for (size_t i = 0; i < NUMBER_OF_LANGUAGES; ++i)