aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-08-07 11:33:25 +0200
committerm-holger <m-holger@kubitscheck.org>2022-08-07 11:33:25 +0200
commit7c6901bce574fa35a610de1bec90512c6e84d05d (patch)
tree122be9afae6fbee5f4fa524d27d00251b0fcdb05 /libqpdf/QPDF.cc
parenta9c0b026683cc1f9f86a22a0e080940f55d5760d (diff)
downloadqpdf-7c6901bce574fa35a610de1bec90512c6e84d05d.tar.zst
Code tidy: remove redundant calls to smart_ptrs get() method
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r--libqpdf/QPDF.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index c2c764db..7e0dd11e 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -2457,7 +2457,7 @@ QPDF::copyStreamData(QPDFObjectHandle result, QPDFObjectHandle foreign)
}
std::shared_ptr<Buffer> stream_buffer = stream->getStreamDataBuffer();
if ((foreign_stream_qpdf->m->immediate_copy_from) &&
- (stream_buffer.get() == nullptr)) {
+ (stream_buffer == nullptr)) {
// Pull the stream data into a buffer before attempting
// the copy operation. Do it on the source stream so that
// if the source stream is copied multiple times, we don't