aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf-c.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-05 14:26:32 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-05 17:24:56 +0100
commit8cf7f2bfb542b1583aa525611179d1a545f945d5 (patch)
tree2885cfc2c857c7c4578e648553246865fa4c5653 /libqpdf/qpdf-c.cc
parent5f3f78822b5d43e9b02082da5268d186ba7101c0 (diff)
downloadqpdf-8cf7f2bfb542b1583aa525611179d1a545f945d5.tar.zst
API contract: qpdf_get_qpdf_version() returns a static
Diffstat (limited to 'libqpdf/qpdf-c.cc')
-rw-r--r--libqpdf/qpdf-c.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/qpdf-c.cc b/libqpdf/qpdf-c.cc
index 6f03a315..f03ed845 100644
--- a/libqpdf/qpdf-c.cc
+++ b/libqpdf/qpdf-c.cc
@@ -161,6 +161,7 @@ static QPDF_ERROR_CODE trap_errors(
char const* qpdf_get_qpdf_version()
{
QTC::TC("qpdf", "qpdf-c called qpdf_get_qpdf_version");
+ // The API guarantees that this is a static value.
return QPDF::QPDFVersion().c_str();
}