From 61f489dd709aae2ad6ac9643c53ecdeef44d4648 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 12 Jan 2024 08:12:26 +1000 Subject: [PATCH] Fix "type qualifiers ignored on cast result type" warning --- Pdf4QtLibCore/sources/pdfstreamfilters.cpp | 2 +- Pdf4QtLibCore/sources/pdfutils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pdf4QtLibCore/sources/pdfstreamfilters.cpp b/Pdf4QtLibCore/sources/pdfstreamfilters.cpp index 4becfa4..203b036 100644 --- a/Pdf4QtLibCore/sources/pdfstreamfilters.cpp +++ b/Pdf4QtLibCore/sources/pdfstreamfilters.cpp @@ -895,7 +895,7 @@ QByteArray PDFStreamPredictor::applyPNGPredictor(const QByteArray& data) const } // Fill the output buffer - outputData.push_back(static_cast(line[lineIndex])); + outputData.push_back(static_cast(line[lineIndex])); } // Swap the buffers diff --git a/Pdf4QtLibCore/sources/pdfutils.cpp b/Pdf4QtLibCore/sources/pdfutils.cpp index 0e343b6..3e3defc 100644 --- a/Pdf4QtLibCore/sources/pdfutils.cpp +++ b/Pdf4QtLibCore/sources/pdfutils.cpp @@ -225,7 +225,7 @@ void PDFBitWriter::flush(bool alignToByteBoundary) for (Value byteIndex = 0; byteIndex < bytesToWrite; ++byteIndex) { const Value shift = (bytesToWrite - 1 - byteIndex) * 8; - m_outputByteArray.push_back(static_cast(static_cast((alignedBuffer >> shift) & 0xFF))); + m_outputByteArray.push_back(static_cast(static_cast((alignedBuffer >> shift) & 0xFF))); } m_bitsInBuffer = remainder;