Replace use of C style casts

This commit is contained in:
Jonas Kvinge
2020-06-15 17:59:02 +02:00
parent a68c249d4e
commit 72ede666d4
35 changed files with 105 additions and 111 deletions

View File

@@ -875,7 +875,7 @@ QString UnicodeToAscii(const QString &unicode) {
#endif
iconv_t conv = iconv_open("ASCII//TRANSLIT", "UTF-8");
if (conv == (iconv_t) -1) return unicode;
if (conv == reinterpret_cast<iconv_t>(-1)) return unicode;
QByteArray utf8 = unicode.toUtf8();