aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Stream.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-12-31 13:13:32 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-12-31 16:23:59 +0100
commitec35156ab0fef078600e6d3551178adf73b87b3b (patch)
treef3930f65bec2aee82d8082724dd1b6b6bf68bb27 /libqpdf/QPDF_Stream.cc
parent0ef2def8ad1f280adc34825b1588d9811d9ac031 (diff)
downloadqpdf-ec35156ab0fef078600e6d3551178adf73b87b3b.tar.zst
Refactor QPDFValue::getDescription
Remove parameters and return the description.
Diffstat (limited to 'libqpdf/QPDF_Stream.cc')
-rw-r--r--libqpdf/QPDF_Stream.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc
index b5aac026..66916c21 100644
--- a/libqpdf/QPDF_Stream.cc
+++ b/libqpdf/QPDF_Stream.cc
@@ -292,12 +292,9 @@ QPDF_Stream::setDescription(
void
QPDF_Stream::setDictDescription()
{
- QPDF* qpdf = nullptr;
- std::string description;
- if ((!this->stream_dict.hasObjectDescription()) &&
- getDescription(qpdf, description)) {
+ if (!this->stream_dict.hasObjectDescription()) {
this->stream_dict.setObjectDescription(
- qpdf, description + " -> stream dictionary");
+ qpdf, getDescription() + " -> stream dictionary");
}
}