From 7c6901bce574fa35a610de1bec90512c6e84d05d Mon Sep 17 00:00:00 2001 From: m-holger Date: Sun, 7 Aug 2022 10:33:25 +0100 Subject: Code tidy: remove redundant calls to smart_ptrs get() method --- libqpdf/Pl_Buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/Pl_Buffer.cc') 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(len); } size_t cur_size = this->m->data->getSize(); -- cgit v1.2.3-54-g00ecf