replace C-style cast with reinterpret_cast in qt_unix_query() function

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-22 18:21:46 +00:00
parent 9244bccb83
commit fb7e417299

View file

@ -325,7 +325,7 @@ static bool qt_unix_query(const QString &library, uint *version, bool *debug, QL
}
ulong fdlen = file.size();
const char *filedata = (char *) file.map(0, fdlen);
const char *filedata = reinterpret_cast<char*>(file.map(0, fdlen));
if (filedata == 0) {
// try reading the data into memory instead
const QByteArray data = file.readAll();