mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Qbs: fix build clang, mingw
This commit is contained in:
@ -359,13 +359,6 @@ QByteArray PDFLzwDecodeFilter::apply(const QByteArray& data,
|
||||
{
|
||||
const PDFDictionary* dictionary = dereferencedParameters.getDictionary();
|
||||
|
||||
PDFInteger predictor = 1;
|
||||
const PDFObject& predictorObject = objectFetcher(dictionary->get("Predictor"));
|
||||
if (predictorObject.isInt())
|
||||
{
|
||||
predictor = predictorObject.getInteger();
|
||||
}
|
||||
|
||||
const PDFObject& earlyChangeObject = objectFetcher(dictionary->get("EarlyChange"));
|
||||
if (earlyChangeObject.isInt())
|
||||
{
|
||||
@ -385,19 +378,6 @@ QByteArray PDFFlateDecodeFilter::apply(const QByteArray& data,
|
||||
{
|
||||
Q_UNUSED(securityHandler);
|
||||
|
||||
const PDFObject& dereferencedParameters = objectFetcher(parameters);
|
||||
if (dereferencedParameters.isDictionary())
|
||||
{
|
||||
const PDFDictionary* dictionary = dereferencedParameters.getDictionary();
|
||||
|
||||
PDFInteger predictor = 1;
|
||||
const PDFObject& predictorObject = objectFetcher(dictionary->get("Predictor"));
|
||||
if (predictorObject.isInt())
|
||||
{
|
||||
predictor = predictorObject.getInteger();
|
||||
}
|
||||
}
|
||||
|
||||
PDFStreamPredictor predictor = PDFStreamPredictor::createPredictor(objectFetcher, parameters);
|
||||
return predictor.apply(uncompress(data));
|
||||
}
|
||||
|
Reference in New Issue
Block a user