Volume: Mark ReadWiiNames parameter as const

I forgot it when I added the method.
This commit is contained in:
JosJuice 2015-05-29 20:19:11 +02:00
parent d1d284e784
commit 9a000f4085
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)