summaryrefslogtreecommitdiffstats
path: root/include/qpdf/Pl_Count.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/Pl_Count.hh')
-rw-r--r--include/qpdf/Pl_Count.hh23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/qpdf/Pl_Count.hh b/include/qpdf/Pl_Count.hh
index 0b021d9a..aa281c5c 100644
--- a/include/qpdf/Pl_Count.hh
+++ b/include/qpdf/Pl_Count.hh
@@ -48,10 +48,25 @@ class Pl_Count: public Pipeline
unsigned char getLastChar() const;
private:
- // Must be qpdf_offset_t, not size_t, to handle writing more than
- // size_t can handle.
- qpdf_offset_t count;
- unsigned char last_char;
+ class Members
+ {
+ friend class Pl_Count;
+
+ public:
+ QPDF_DLL
+ ~Members();
+
+ private:
+ Members();
+ Members(Members const&);
+
+ // Must be qpdf_offset_t, not size_t, to handle writing more than
+ // size_t can handle.
+ qpdf_offset_t count;
+ unsigned char last_char;
+ };
+
+ PointerHolder<Members> m;
};
#endif // PL_COUNT_HH