diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-05 14:26:32 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-05 17:24:56 +0100 |
commit | 8cf7f2bfb542b1583aa525611179d1a545f945d5 (patch) | |
tree | 2885cfc2c857c7c4578e648553246865fa4c5653 /include | |
parent | 5f3f78822b5d43e9b02082da5268d186ba7101c0 (diff) | |
download | qpdf-8cf7f2bfb542b1583aa525611179d1a545f945d5.tar.zst |
API contract: qpdf_get_qpdf_version() returns a static
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 2 | ||||
-rw-r--r-- | include/qpdf/qpdf-c.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index b26fc805..5d3fd651 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -773,7 +773,7 @@ class QPDF friend class Pipe; private: - static std::string qpdf_version; + static std::string const qpdf_version; class ObjCache { diff --git a/include/qpdf/qpdf-c.h b/include/qpdf/qpdf-c.h index a6fc82ae..5a0595b2 100644 --- a/include/qpdf/qpdf-c.h +++ b/include/qpdf/qpdf-c.h @@ -171,7 +171,9 @@ extern "C" { QPDF_DLL void qpdf_silence_errors(qpdf_data qpdf); - /* Returns the version of the qpdf software */ + /* Returns the version of the qpdf software. This is guaranteed to + * be a static value. + */ QPDF_DLL char const* qpdf_get_qpdf_version(); |