mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #25: MinGW compilation fix
This commit is contained in:
@ -258,7 +258,8 @@ PDFToolAbstractApplication::Options PDFToolFetchImages::getOptionsFlags() const
|
||||
void PDFToolFetchImages::onImageExtracted(pdf::PDFInteger pageIndex, pdf::PDFInteger order, const QImage& image)
|
||||
{
|
||||
QCryptographicHash hasher(QCryptographicHash::Sha512);
|
||||
hasher.addData(reinterpret_cast<const char*>(image.bits()), image.sizeInBytes());
|
||||
QByteArrayView imageData(image.bits(), image.sizeInBytes());
|
||||
hasher.addData(imageData);
|
||||
QByteArray hash = hasher.result();
|
||||
|
||||
QMutexLocker lock(&m_mutex);
|
||||
|
Reference in New Issue
Block a user