mirror of https://github.com/JakubMelka/PDF4QT.git
Fix "type qualifiers ignored on cast result type" warning
This commit is contained in:
parent
7ab77c582b
commit
61f489dd70
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue