mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-14 02:54:19 -04:00
Replace C cast with reinterpret_cast
This commit is contained in:
@ -811,7 +811,7 @@ bool QAVIFHandler::write(const QImage &image)
|
||||
avifImageDestroy(avif);
|
||||
|
||||
if (res == AVIF_RESULT_OK) {
|
||||
qint64 status = device()->write((const char *)raw.data, raw.size);
|
||||
qint64 status = device()->write(reinterpret_cast<const char *>(raw.data), raw.size);
|
||||
avifRWDataFree(&raw);
|
||||
|
||||
if (status > 0) {
|
||||
|
@ -745,7 +745,7 @@ bool QJpegXLHandler::write(const QImage &image)
|
||||
compressed.resize(next_out - compressed.data());
|
||||
|
||||
if (compressed.size() > 0) {
|
||||
qint64 write_status = device()->write((const char *)compressed.data(), compressed.size());
|
||||
qint64 write_status = device()->write(reinterpret_cast<const char *>(compressed.data()), compressed.size());
|
||||
|
||||
if (write_status > 0) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user