diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-08-07 14:41:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 14:41:50 +0200 |
commit | b90adb1c6ce922fe80d0e3287d76b181bffa4c44 (patch) | |
tree | 2f6766238f3d4e9048e77dc5fe9bfd7108202593 /libqpdf/QPDF.cc | |
parent | 7537391222e1b592beb7a294efe34dd393409d07 (diff) | |
parent | 7c6901bce574fa35a610de1bec90512c6e84d05d (diff) | |
download | qpdf-b90adb1c6ce922fe80d0e3287d76b181bffa4c44.tar.zst |
Merge pull request #746 from m-holger/smart
Code tidy: remove redundant calls to smart_ptrs get() method
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r-- | libqpdf/QPDF.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc index b47a6e29..b96b0674 100644 --- a/libqpdf/QPDF.cc +++ b/libqpdf/QPDF.cc @@ -2469,7 +2469,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 |