diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-07-24 20:41:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 20:41:33 +0200 |
commit | 5696a507b6dacf34d066810a3f2fca3525eb02f5 (patch) | |
tree | b0009760e0f76c28aa99581e4bc6087adf93749f /libqpdf/QPDFPageObjectHelper.cc | |
parent | 6f1041afb8e6d1f57169cd4c79f42a7c1ce94da8 (diff) | |
parent | 8b4afa428e9caa1a34cad434dfe8a3e01e5a24d3 (diff) | |
download | qpdf-5696a507b6dacf34d066810a3f2fca3525eb02f5.tar.zst |
Merge pull request #731 from m-holger/og_unparse
Tidy QPDFObjGen related code
Diffstat (limited to 'libqpdf/QPDFPageObjectHelper.cc')
-rw-r--r-- | libqpdf/QPDFPageObjectHelper.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libqpdf/QPDFPageObjectHelper.cc b/libqpdf/QPDFPageObjectHelper.cc index 6c38f098..96a8ce69 100644 --- a/libqpdf/QPDFPageObjectHelper.cc +++ b/libqpdf/QPDFPageObjectHelper.cc @@ -21,8 +21,7 @@ namespace { } virtual ~ContentProvider() = default; - virtual void - provideStreamData(int objid, int generation, Pipeline* pipeline); + virtual void provideStreamData(QPDFObjGen const&, Pipeline* pipeline); private: QPDFObjectHandle from_page; @@ -30,12 +29,11 @@ namespace } // namespace void -ContentProvider::provideStreamData(int, int, Pipeline* p) +ContentProvider::provideStreamData(QPDFObjGen const&, Pipeline* p) { Pl_Concatenate concat("concatenate", p); - std::string description = "contents from page object " + - QUtil::int_to_string(from_page.getObjectID()) + " " + - QUtil::int_to_string(from_page.getGeneration()); + std::string description = + "contents from page object " + from_page.getObjGen().unparse(' '); std::string all_description; from_page.getKey("/Contents") .pipeContentStreams(&concat, description, all_description); |