Merge pull request #2483 from JosJuice/readwiinames-const

Volume: Mark ReadWiiNames parameter as const
This commit is contained in:
Lioncash 2015-05-29 17:10:06 -04:00
commit ff29ffeb66
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)