diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-05-21 18:41:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 18:41:01 +0200 |
commit | bbe9f8b83c1e7d42f7e1f5b2ea613dc845a1de7c (patch) | |
tree | 89047a76039b7e98fcdd97eac0fa93081c201820 /libqpdf/Buffer.cc | |
parent | 2028e35928ee8725128f52cae999ac6829dee2fc (diff) | |
parent | 49e6365f63f3ad09f04093d421caee04bc042c0d (diff) | |
download | qpdf-bbe9f8b83c1e7d42f7e1f5b2ea613dc845a1de7c.tar.zst |
Merge pull request #969 from m-holger/tidy
Code formating : drop 'this->' in 'this->m'
Diffstat (limited to 'libqpdf/Buffer.cc')
-rw-r--r-- | libqpdf/Buffer.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libqpdf/Buffer.cc b/libqpdf/Buffer.cc index 98a524ce..ae04fbc8 100644 --- a/libqpdf/Buffer.cc +++ b/libqpdf/Buffer.cc @@ -56,7 +56,7 @@ Buffer::Buffer(Buffer&& rhs) noexcept : Buffer& Buffer::operator=(Buffer&& rhs) noexcept { - std::swap(this->m, rhs.m); + std::swap(m, rhs.m); return *this; } @@ -64,10 +64,9 @@ void 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); + m = std::unique_ptr<Members>(new Members(rhs.m->size, nullptr, true)); + if (m->size) { + memcpy(m->buf, rhs.m->buf, m->size); } } } @@ -75,17 +74,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; } |