summaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFObjGen.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDFObjGen.hh')
-rw-r--r--include/qpdf/QPDFObjGen.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjGen.hh b/include/qpdf/QPDFObjGen.hh
index 81c45d9f..9b61c78d 100644
--- a/include/qpdf/QPDFObjGen.hh
+++ b/include/qpdf/QPDFObjGen.hh
@@ -44,6 +44,9 @@ class QPDFObjGen
int getGen() const;
private:
+ // This class does not use the Members pattern to avoid a memory
+ // allocation for every one of these. A lot of these get created
+ // and destroyed.
int obj;
int gen;
};