diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-09-23 13:46:54 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-09-23 21:09:13 +0200 |
commit | 44a7aff56f13a0afb16e6b1abcf4b62e49f35863 (patch) | |
tree | c2c211cc6852e8a02f898828aca689478ef00ce3 /include | |
parent | ae800361fefb6d30d054f5d90af310c85765b044 (diff) | |
download | qpdf-44a7aff56f13a0afb16e6b1abcf4b62e49f35863.tar.zst |
Refactor Pl_Buffer
Base implementation of the buffer on std::basic_string<unsigned char>.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/Pl_Buffer.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/qpdf/Pl_Buffer.hh b/include/qpdf/Pl_Buffer.hh index 7784286d..ed9056ac 100644 --- a/include/qpdf/Pl_Buffer.hh +++ b/include/qpdf/Pl_Buffer.hh @@ -35,7 +35,6 @@ #include <qpdf/Buffer.hh> #include <qpdf/Pipeline.hh> -#include <qpdf/PointerHolder.hh> #include <memory> @@ -80,12 +79,11 @@ class QPDF_DLL_CLASS Pl_Buffer: public Pipeline ~Members() = default; private: - Members(); + Members() = default; Members(Members const&) = delete; - bool ready; - std::shared_ptr<Buffer> data; - size_t total_size; + bool ready{true}; + std::basic_string<unsigned char> data; }; std::shared_ptr<Members> m; |