aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/NNTree.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/NNTree.cc
parent696ca53205fd725062b541fea88d9f36742a4c74 (diff)
downloadqpdf-68e721981a1fe4f1398d811bb8ed99af0e100da8.tar.zst
Add new QPDF::warn that takes most of QPDFExc's arguments
Diffstat (limited to 'libqpdf/NNTree.cc')
-rw-r--r--libqpdf/NNTree.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/libqpdf/NNTree.cc b/libqpdf/NNTree.cc
index 985a3cb2..9d4e8ec7 100644
--- a/libqpdf/NNTree.cc
+++ b/libqpdf/NNTree.cc
@@ -18,14 +18,7 @@ get_description(QPDFObjectHandle& node)
static void
warn(QPDF& qpdf, QPDFObjectHandle& node, std::string const& msg)
{
- qpdf.warn(
- // line-break
- QPDFExc(
- qpdf_e_damaged_pdf,
- qpdf.getFilename(),
- get_description(node),
- 0,
- msg));
+ qpdf.warn(qpdf_e_damaged_pdf, get_description(node), 0, msg);
}
static void