Use const where applicable

This commit is contained in:
Zach Hilman 2018-07-28 12:35:02 -04:00
parent 9e88f03e75
commit 5927cf0e17
4 changed files with 7 additions and 7 deletions

View file

@ -25,7 +25,7 @@ AppLoader_DeconstructedRomDirectory::AppLoader_DeconstructedRomDirectory(FileSys
// Icon
FileSys::VirtualFile icon_file = nullptr;
for (const auto& language : FileSys::LANGUAGE_NAMES) {
icon_file = dir->GetFile("icon_" + language + ".dat");
icon_file = dir->GetFile("icon_" + std::string(language) + ".dat");
if (icon_file != nullptr) {
icon_data = icon_file->ReadAllBytes();
break;