summaryrefslogtreecommitdiffstats
path: root/qpdf
diff options
context:
space:
mode:
Diffstat (limited to 'qpdf')
-rw-r--r--qpdf/test_driver.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc
index d2869317..e7b78c4a 100644
--- a/qpdf/test_driver.cc
+++ b/qpdf/test_driver.cc
@@ -597,9 +597,8 @@ void runtest(int n, char const* filename)
QPDFObjectHandle qarray = trailer.getKey("/QArray");
// Force qdict but not qarray to resolve
qdict.isDictionary();
- std::map<std::string, QPDFObjectHandle> dict_keys;
- dict_keys["/NewDict"] = QPDFObjectHandle::newInteger(2);
- QPDFObjectHandle new_dict = QPDFObjectHandle::newDictionary(dict_keys);
+ QPDFObjectHandle new_dict = QPDFObjectHandle::newDictionary();
+ new_dict.replaceKey("/NewDict", QPDFObjectHandle::newInteger(2));
try
{
// Do it wrong first...