aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_pages.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-24 00:03:44 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-24 00:25:43 +0200
commit68e721981a1fe4f1398d811bb8ed99af0e100da8 (patch)
treed2990289f704e96bd8853891846119e02d0a12f0 /libqpdf/QPDF_pages.cc
parent696ca53205fd725062b541fea88d9f36742a4c74 (diff)
downloadqpdf-68e721981a1fe4f1398d811bb8ed99af0e100da8.tar.zst
Add new QPDF::warn that takes most of QPDFExc's arguments
Diffstat (limited to 'libqpdf/QPDF_pages.cc')
-rw-r--r--libqpdf/QPDF_pages.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/QPDF_pages.cc b/libqpdf/QPDF_pages.cc
index 065be7e7..c2b2dd1a 100644
--- a/libqpdf/QPDF_pages.cc
+++ b/libqpdf/QPDF_pages.cc
@@ -130,12 +130,11 @@ QPDF::getAllPagesInternal(
}
if (!cur_node.isDictionaryOfType(wanted_type)) {
- warn(QPDFExc(
+ warn(
qpdf_e_damaged_pdf,
- this->m->file->getName(),
"page tree node",
this->m->file->getLastOffset(),
- "/Type key should be " + wanted_type + " but is not; overriding"));
+ "/Type key should be " + wanted_type + " but is not; overriding");
cur_node.replaceKey("/Type", QPDFObjectHandle::newName(wanted_type));
}
visited.erase(this_og);