diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2023-06-17 20:04:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-17 20:04:06 +0200 |
commit | 328a2d083eaa1a71bd47d22df0321cc8a302c511 (patch) | |
tree | e195044da4cae04febced1528f4f30e64e54343d /libqpdf/Pl_LZWDecoder.cc | |
parent | 463953bc96ead56227ef3dbf62639eb7e3545ab4 (diff) | |
parent | 0f2ef5e85bce0d64683e8071151711f21fa3e052 (diff) | |
download | qpdf-328a2d083eaa1a71bd47d22df0321cc8a302c511.tar.zst |
Merge pull request #983 from m-holger/buffer
Add new Buffer method copy and deprecate copy constructor / assignment operator
Diffstat (limited to 'libqpdf/Pl_LZWDecoder.cc')
-rw-r--r-- | libqpdf/Pl_LZWDecoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/Pl_LZWDecoder.cc b/libqpdf/Pl_LZWDecoder.cc index 4ffcaa3f..9abb69cd 100644 --- a/libqpdf/Pl_LZWDecoder.cc +++ b/libqpdf/Pl_LZWDecoder.cc @@ -129,7 +129,7 @@ Pl_LZWDecoder::addToTable(unsigned char next) unsigned char* new_data = entry.getBuffer(); memcpy(new_data, last_data, last_size); new_data[last_size] = next; - this->table.push_back(entry); + this->table.push_back(std::move(entry)); } void |