Fix escaping QByteArray construction.

This commit is contained in:
John Preston 2023-01-12 10:10:21 +04:00
parent 6cd13e1057
commit c72beeeb7c

View file

@ -1362,9 +1362,7 @@ QByteArray MakeProgressiveJpeg(const QByteArray &bytes) {
jpeg_finish_compress(&dstinfo); jpeg_finish_compress(&dstinfo);
jpeg_finish_decompress(&srcinfo); jpeg_finish_decompress(&srcinfo);
return QByteArray::fromRawData( return QByteArray(reinterpret_cast<char*>(outbuffer), outsize);
reinterpret_cast<char*>(outbuffer),
outsize);
} catch (...) { } catch (...) {
return {}; return {};
} }