aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-09-06 00:50:55 +0200
committerJay Berkenbilt <ejb@ql.org>2022-09-06 00:52:59 +0200
commit0a7ba62b004ba16ee2c52b94f126d32c4d857e95 (patch)
treee22a79cdd3ee224454af422cf718cb344952a1ac
parent1264f4733e6fed2a25d08bf2eadbe4ea45150b2d (diff)
downloadqpdf-0a7ba62b004ba16ee2c52b94f126d32c4d857e95.tar.zst
Update formatting a documentation from last PR
-rw-r--r--ChangeLog6
-rw-r--r--include/qpdf/Buffer.hh4
-rw-r--r--manual/release-notes.rst2
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fdb6b1b2..e31ab9f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-05 Jay Berkenbilt <ejb@ql.org>
+
+ * Add a move constructor to Buffer, making it possible to move
+ rather than copy the internal buffer. Thanks to jbarlow83 for the
+ contribution.
+
2022-09-02 Jay Berkenbilt <ejb@ql.org>
* Add new QPDF::create() factory method that returns
diff --git a/include/qpdf/Buffer.hh b/include/qpdf/Buffer.hh
index 56441df9..7fdc5c40 100644
--- a/include/qpdf/Buffer.hh
+++ b/include/qpdf/Buffer.hh
@@ -49,9 +49,9 @@ class Buffer
QPDF_DLL
Buffer& operator=(Buffer const&);
QPDF_DLL
- Buffer(Buffer &&) noexcept;
+ Buffer(Buffer&&) noexcept;
QPDF_DLL
- Buffer& operator=(Buffer &&) noexcept;
+ Buffer& operator=(Buffer&&) noexcept;
QPDF_DLL
size_t getSize() const;
QPDF_DLL
diff --git a/manual/release-notes.rst b/manual/release-notes.rst
index abc3f42a..0cd34934 100644
--- a/manual/release-notes.rst
+++ b/manual/release-notes.rst
@@ -251,6 +251,8 @@ For a detailed list of changes, please see the file
generation parameters. The old versions will continue to be
supported and are not deprecated.
+ - Add a move constructor to the ``Buffer`` class.
+
- Other changes
- In JSON v1 mode, the ``"objects"`` key now reflects the repaired