mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Fixed cast warning
This commit is contained in:
parent
4e903e4c50
commit
4277364e91
@ -454,7 +454,7 @@ void Metadata::copyCustomIcons(const QSet<Uuid>& iconList, const Metadata* other
|
|||||||
|
|
||||||
QByteArray Metadata::hashImage(const QImage& image)
|
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);
|
return QCryptographicHash::hash(data, QCryptographicHash::Md5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user