aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_Buffer.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-08-07 14:41:50 +0200
committerGitHub <noreply@github.com>2022-08-07 14:41:50 +0200
commitb90adb1c6ce922fe80d0e3287d76b181bffa4c44 (patch)
tree2f6766238f3d4e9048e77dc5fe9bfd7108202593 /libqpdf/Pl_Buffer.cc
parent7537391222e1b592beb7a294efe34dd393409d07 (diff)
parent7c6901bce574fa35a610de1bec90512c6e84d05d (diff)
downloadqpdf-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/Pl_Buffer.cc')
-rw-r--r--libqpdf/Pl_Buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/Pl_Buffer.cc b/libqpdf/Pl_Buffer.cc
index c7e3f923..791656d8 100644
--- a/libqpdf/Pl_Buffer.cc
+++ b/libqpdf/Pl_Buffer.cc
@@ -26,7 +26,7 @@ Pl_Buffer::~Pl_Buffer()
void
Pl_Buffer::write(unsigned char const* buf, size_t len)
{
- if (this->m->data.get() == nullptr) {
+ if (this->m->data == nullptr) {
this->m->data = std::make_shared<Buffer>(len);
}
size_t cur_size = this->m->data->getSize();