summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-06-23 15:10:42 +0200
committerJay Berkenbilt <ejb@ql.org>2019-06-23 19:45:45 +0200
commit04f45cf652f2ee30a677933817aef8971a1f533d (patch)
tree0163524ba53505a0ac79e55f4ed17c4c6dc38e4a /include
parent0b45dfd3b12b0d74216b2ca6aba964a7f73908b7 (diff)
downloadqpdf-04f45cf652f2ee30a677933817aef8971a1f533d.tar.zst
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.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh12
1 files changed, 5 insertions, 7 deletions
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);