Fixed cast warning

This commit is contained in:
Jonathan White 2017-10-03 15:40:15 -04:00 committed by Jonathan White
parent 4e903e4c50
commit 4277364e91

View File

@ -454,7 +454,7 @@ void Metadata::copyCustomIcons(const QSet<Uuid>& iconList, const Metadata* other
QByteArray Metadata::hashImage(const QImage& image)
{
auto data = QByteArray((char*)image.bits(), image.byteCount());
auto data = QByteArray(reinterpret_cast<const char*>(image.bits()), image.byteCount());
return QCryptographicHash::hash(data, QCryptographicHash::Md5);
}