Fix "type qualifiers ignored on cast result type" warning

This commit is contained in:
Nyall Dawson 2024-01-12 08:12:26 +10:00 committed by Jakub Melka
parent 7ab77c582b
commit 61f489dd70
2 changed files with 2 additions and 2 deletions

View File

@ -895,7 +895,7 @@ QByteArray PDFStreamPredictor::applyPNGPredictor(const QByteArray& data) const
} }
// Fill the output buffer // Fill the output buffer
outputData.push_back(static_cast<const char>(line[lineIndex])); outputData.push_back(static_cast<char>(line[lineIndex]));
} }
// Swap the buffers // Swap the buffers

View File

@ -225,7 +225,7 @@ void PDFBitWriter::flush(bool alignToByteBoundary)
for (Value byteIndex = 0; byteIndex < bytesToWrite; ++byteIndex) for (Value byteIndex = 0; byteIndex < bytesToWrite; ++byteIndex)
{ {
const Value shift = (bytesToWrite - 1 - byteIndex) * 8; const Value shift = (bytesToWrite - 1 - byteIndex) * 8;
m_outputByteArray.push_back(static_cast<const char>(static_cast<uint8_t>((alignedBuffer >> shift) & 0xFF))); m_outputByteArray.push_back(static_cast<char>(static_cast<uint8_t>((alignedBuffer >> shift) & 0xFF)));
} }
m_bitsInBuffer = remainder; m_bitsInBuffer = remainder;