mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45: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};
|
std::string line {stringArg};
|
||||||
bool active {true};
|
bool active {true};
|
||||||
|
|
||||||
for (unsigned char chr : line) {
|
for (auto& chr : line) {
|
||||||
if (std::isalnum(chr)) {
|
if (std::isalnum(static_cast<unsigned char>(chr))) {
|
||||||
if (active) {
|
if (active) {
|
||||||
chr = std::toupper(chr);
|
chr = std::toupper(chr);
|
||||||
active = false;
|
active = false;
|
||||||
|
|
Loading…
Reference in a new issue