Use QChar::unicode()
This commit is contained in:
@@ -136,12 +136,12 @@ QString OrganizeFormat::GetFilenameForSong(const Song &song, QString extension)
|
|||||||
QString stripped;
|
QString stripped;
|
||||||
for (int i = 0 ; i < filename.length() ; ++i) {
|
for (int i = 0 ; i < filename.length() ; ++i) {
|
||||||
const QChar c = filename[i];
|
const QChar c = filename[i];
|
||||||
if (c < ascii) {
|
if (c.unicode() < ascii) {
|
||||||
stripped.append(c);
|
stripped.append(c);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const QString decomposition = c.decomposition();
|
const QString decomposition = c.decomposition();
|
||||||
if (!decomposition.isEmpty() && decomposition[0] < ascii)
|
if (!decomposition.isEmpty() && decomposition[0].unicode() < ascii)
|
||||||
stripped.append(decomposition[0]);
|
stripped.append(decomposition[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user