diff options
Diffstat (limited to 'libqpdf/Buffer.cc')
-rw-r--r-- | libqpdf/Buffer.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libqpdf/Buffer.cc b/libqpdf/Buffer.cc index 98a524ce..45b2119a 100644 --- a/libqpdf/Buffer.cc +++ b/libqpdf/Buffer.cc @@ -66,8 +66,8 @@ Buffer::copy(Buffer const& rhs) if (this != &rhs) { this->m = std::unique_ptr<Members>(new Members(rhs.m->size, nullptr, true)); - if (this->m->size) { - memcpy(this->m->buf, rhs.m->buf, this->m->size); + if (m->size) { + memcpy(m->buf, rhs.m->buf, m->size); } } } @@ -75,17 +75,17 @@ Buffer::copy(Buffer const& rhs) size_t Buffer::getSize() const { - return this->m->size; + return m->size; } unsigned char const* Buffer::getBuffer() const { - return this->m->buf; + return m->buf; } unsigned char* Buffer::getBuffer() { - return this->m->buf; + return m->buf; } |