aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-22 15:46:33 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-22 15:46:33 +0200
commitb6bdc0f5950287c1c9e76115bdec230dcf99b964 (patch)
tree5912f9a181e4350e7fd39867523081cd7d1327b4 /include
parenta0768e419064b66ea6eb3e06a4398806b24311e8 (diff)
downloadqpdf-b6bdc0f5950287c1c9e76115bdec230dcf99b964.tar.zst
Add factory methods for creating empty arrays and dictionaries.
Also updated pdf_from_scratch test driver to use the new factories, and made some cosmetic improvements and documentation updates for the emptyPDF() method.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFObjectHandle.hh4
-rw-r--r--include/qpdf/QUtil.hh1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh
index 4a056185..8fd19764 100644
--- a/include/qpdf/QPDFObjectHandle.hh
+++ b/include/qpdf/QPDFObjectHandle.hh
@@ -106,9 +106,13 @@ class QPDFObjectHandle
QPDF_DLL
static QPDFObjectHandle newString(std::string const& str);
QPDF_DLL
+ static QPDFObjectHandle newArray();
+ QPDF_DLL
static QPDFObjectHandle newArray(
std::vector<QPDFObjectHandle> const& items);
QPDF_DLL
+ static QPDFObjectHandle newDictionary();
+ QPDF_DLL
static QPDFObjectHandle newDictionary(
std::map<std::string, QPDFObjectHandle> const& items);
diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh
index 4d5981de..8d2c09cf 100644
--- a/include/qpdf/QUtil.hh
+++ b/include/qpdf/QUtil.hh
@@ -14,7 +14,6 @@
#include <list>
#include <stdexcept>
#include <stdio.h>
-#include <sys/stat.h>
namespace QUtil
{