aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_optimization.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_optimization.cc
parent696ca53205fd725062b541fea88d9f36742a4c74 (diff)
downloadqpdf-68e721981a1fe4f1398d811bb8ed99af0e100da8.tar.zst
Add new QPDF::warn that takes most of QPDFExc's arguments
Diffstat (limited to 'libqpdf/QPDF_optimization.cc')
-rw-r--r--libqpdf/QPDF_optimization.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/libqpdf/QPDF_optimization.cc b/libqpdf/QPDF_optimization.cc
index c76e255d..0c453126 100644
--- a/libqpdf/QPDF_optimization.cc
+++ b/libqpdf/QPDF_optimization.cc
@@ -266,15 +266,14 @@ QPDF::pushInheritedAttributesToPageInternal(
"Pages object",
cur_pages.getObjectID(),
cur_pages.getGeneration());
- warn(QPDFExc(
+ warn(
qpdf_e_pages,
- this->m->file->getName(),
this->m->last_object_description,
0,
- "Unknown key " + key +
- " in /Pages object"
- " is being discarded as a result of"
- " flattening the /Pages tree"));
+ ("Unknown key " + key +
+ " in /Pages object"
+ " is being discarded as a result of"
+ " flattening the /Pages tree"));
}
}
}