mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove use of std::transform(), use SDL_toupper/lower
There's no need to use a template here. Just manually call SDL_tolower() or SDL_toupper() as needed. Oh yeah, and use SDL_tolower() and SDL_toupper() instead of libc tolower() and toupper().
This commit is contained in:
@@ -6786,7 +6786,10 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
||||
{
|
||||
text = " " + ed.ListOfMetaData[i].title;
|
||||
}
|
||||
std::transform(text.begin(), text.end(), text.begin(), ::tolower);
|
||||
for (size_t ii = 0; ii < text.length(); ii++)
|
||||
{
|
||||
text[ii] = SDL_tolower(text[ii]);
|
||||
}
|
||||
option(text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user