From 04f45cf652f2ee30a677933817aef8971a1f533d Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 23 Jun 2019 09:10:42 -0400 Subject: Treat all linearization errors as warnings This also reverts the addition of a new checkLinearization that distinguishes errors from warnings. There's no practical distinction between what was considered an error and what was considered a warning. --- include/qpdf/QPDF.hh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index d534a4df..f052cb33 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -477,15 +477,13 @@ class QPDF QPDF_DLL bool isLinearized(); - // Performs various sanity checks on a linearized file. Return - // true if no errors or warnings. Otherwise, return false and + // Performs various sanity checks on a linearized file. Return + // true if no errors or warnings. Otherwise, return false and // output errors and warnings to std::cout or the output stream - // specified in a call to setOutputStreams. + // specified in a call to setOutputStreams. It is recommended for + // linearization errors to be treated as warnings. QPDF_DLL bool checkLinearization(); - // Separately indicate whether there were errors or warnings. - QPDF_DLL - void checkLinearization(bool& errors, bool& warnings); // Calls checkLinearization() and, if possible, prints normalized // contents of some of the hints tables to std::cout or the output @@ -1229,7 +1227,7 @@ class QPDF // methods to support linearization checking -- implemented in // QPDF_linearization.cc void readLinearizationData(); - void checkLinearizationInternal(bool& errors, bool& warnings); + bool checkLinearizationInternal(); void dumpLinearizationDataInternal(); QPDFObjectHandle readHintStream( Pipeline&, qpdf_offset_t offset, size_t length); -- cgit v1.2.3-70-g09d2