mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-17 11:44:16 -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);
|
avifImageDestroy(avif);
|
||||||
|
|
||||||
if (res == AVIF_RESULT_OK) {
|
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);
|
avifRWDataFree(&raw);
|
||||||
|
|
||||||
if (status > 0) {
|
if (status > 0) {
|
||||||
|
@ -745,7 +745,7 @@ bool QJpegXLHandler::write(const QImage &image)
|
|||||||
compressed.resize(next_out - compressed.data());
|
compressed.resize(next_out - compressed.data());
|
||||||
|
|
||||||
if (compressed.size() > 0) {
|
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) {
|
if (write_status > 0) {
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user