From 0a7ba62b004ba16ee2c52b94f126d32c4d857e95 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 5 Sep 2022 18:50:55 -0400 Subject: Update formatting a documentation from last PR --- ChangeLog | 6 ++++++ include/qpdf/Buffer.hh | 4 ++-- manual/release-notes.rst | 2 ++ 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 + + * 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 * 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 -- cgit v1.2.3-54-g00ecf