From 85d784952f8a7c4d8c9e614663ebc5b1eb747384 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sun, 21 May 2023 14:42:34 +0100 Subject: Globally replace 'this->m->' with 'm->' Using search and replace. --- libqpdf/Pl_Buffer.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'libqpdf/Pl_Buffer.cc') diff --git a/libqpdf/Pl_Buffer.cc b/libqpdf/Pl_Buffer.cc index 639bff1a..98356325 100644 --- a/libqpdf/Pl_Buffer.cc +++ b/libqpdf/Pl_Buffer.cc @@ -20,8 +20,8 @@ Pl_Buffer::~Pl_Buffer() void Pl_Buffer::write(unsigned char const* buf, size_t len) { - this->m->data.append(buf, len); - this->m->ready = false; + m->data.append(buf, len); + m->ready = false; if (getNext(true)) { getNext()->write(buf, len); @@ -31,7 +31,7 @@ Pl_Buffer::write(unsigned char const* buf, size_t len) void Pl_Buffer::finish() { - this->m->ready = true; + m->ready = true; if (getNext(true)) { getNext()->finish(); } @@ -40,17 +40,17 @@ Pl_Buffer::finish() Buffer* Pl_Buffer::getBuffer() { - if (!this->m->ready) { + if (!m->ready) { throw std::logic_error("Pl_Buffer::getBuffer() called when not ready"); } - auto size = this->m->data.length(); + auto size = m->data.length(); auto* b = new Buffer(size); if (size > 0) { unsigned char* p = b->getBuffer(); - memcpy(p, this->m->data.data(), size); + memcpy(p, m->data.data(), size); } - this->m->data.clear(); + m->data.clear(); return b; } @@ -63,17 +63,17 @@ Pl_Buffer::getBufferSharedPointer() void Pl_Buffer::getMallocBuffer(unsigned char** buf, size_t* len) { - if (!this->m->ready) { + if (!m->ready) { throw std::logic_error( "Pl_Buffer::getMallocBuffer() called when not ready"); } - auto size = this->m->data.length(); + auto size = m->data.length(); *len = size; if (size > 0) { *buf = reinterpret_cast(malloc(size)); - memcpy(*buf, this->m->data.data(), size); + memcpy(*buf, m->data.data(), size); } else { *buf = nullptr; } - this->m->data.clear(); + m->data.clear(); } -- cgit v1.2.3-54-g00ecf