mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed a regression where StringUtil::toCapitalized() stopped working
This commit is contained in:
parent
5ddad6d55e
commit
e3e319f2af
|
@ -551,8 +551,8 @@ namespace Utils
|
|||
std::string line {stringArg};
|
||||
bool active {true};
|
||||
|
||||
for (unsigned char chr : line) {
|
||||
if (std::isalnum(chr)) {
|
||||
for (auto& chr : line) {
|
||||
if (std::isalnum(static_cast<unsigned char>(chr))) {
|
||||
if (active) {
|
||||
chr = std::toupper(chr);
|
||||
active = false;
|
||||
|
|
Loading…
Reference in a new issue