1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Some more code cleanup

This commit is contained in:
Martin Tůma 2024-04-14 23:32:44 +02:00
parent 6f029d81a0
commit 5ef29bf827

View File

@ -38,10 +38,12 @@ static bool isAllUpperCase(const QString &str)
{ {
if (str.isEmpty()) if (str.isEmpty())
return false; return false;
for (int i = 0; i < str.size(); i++)
if (str.at(i).isLetter() && !(str.at(i).isUpper() for (int i = 0; i < str.size(); i++) {
|| str.at(i) == QChar(0x00DF))) QChar c(str.at(i));
if (c.isLetter() && !(c.isUpper() || c == QChar(0x00DF)))
return false; return false;
}
return true; return true;
} }