aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-09-23 13:46:54 +0200
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-09-23 21:09:13 +0200
commit44a7aff56f13a0afb16e6b1abcf4b62e49f35863 (patch)
treec2c211cc6852e8a02f898828aca689478ef00ce3 /include/qpdf
parentae800361fefb6d30d054f5d90af310c85765b044 (diff)
downloadqpdf-44a7aff56f13a0afb16e6b1abcf4b62e49f35863.tar.zst
Refactor Pl_Buffer
Base implementation of the buffer on std::basic_string<unsigned char>.
Diffstat (limited to 'include/qpdf')
-rw-r--r--include/qpdf/Pl_Buffer.hh8
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;