aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_Buffer.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-21 15:42:34 +0200
committerm-holger <m-holger@kubitscheck.org>2023-05-21 15:42:34 +0200
commit85d784952f8a7c4d8c9e614663ebc5b1eb747384 (patch)
treeb2954d6afa41dc1b4d776084bc31222523865665 /libqpdf/Pl_Buffer.cc
parent2028e35928ee8725128f52cae999ac6829dee2fc (diff)
downloadqpdf-85d784952f8a7c4d8c9e614663ebc5b1eb747384.tar.zst
Globally replace 'this->m->' with 'm->'
Using search and replace.
Diffstat (limited to 'libqpdf/Pl_Buffer.cc')
-rw-r--r--libqpdf/Pl_Buffer.cc22
1 files changed, 11 insertions, 11 deletions
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<unsigned char*>(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();
}