diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | include/qpdf/Buffer.hh | 4 | ||||
-rw-r--r-- | manual/release-notes.rst | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -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 |