diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-05-25 15:10:47 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-17 18:18:31 +0200 |
commit | 0f2ef5e85bce0d64683e8071151711f21fa3e052 (patch) | |
tree | 5aee7e0f1c37f1acca3f4d4f7a390d5e409b2b81 /libqpdf/Pl_LZWDecoder.cc | |
parent | acd0acf16931ce92bc908e4960c5a1e43d53b550 (diff) | |
download | qpdf-0f2ef5e85bce0d64683e8071151711f21fa3e052.tar.zst |
Add new Buffer method copy and deprecate copy constructor / assignment operator
Also fix accidental Buffer copy in Pl_LZWDecoder::addToTable.
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 |