diff options
Diffstat (limited to 'libqpdf/QPDFEmbeddedFileDocumentHelper.cc')
-rw-r--r-- | libqpdf/QPDFEmbeddedFileDocumentHelper.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDFEmbeddedFileDocumentHelper.cc b/libqpdf/QPDFEmbeddedFileDocumentHelper.cc index 847a9786..fd706c27 100644 --- a/libqpdf/QPDFEmbeddedFileDocumentHelper.cc +++ b/libqpdf/QPDFEmbeddedFileDocumentHelper.cc @@ -62,8 +62,8 @@ QPDFEmbeddedFileDocumentHelper::initEmbeddedFiles() auto root = qpdf.getRoot(); auto names = root.getKey("/Names"); if (!names.isDictionary()) { - names = - root.replaceKeyAndGet("/Names", QPDFObjectHandle::newDictionary()); + names = root.replaceKeyAndGetNew( + "/Names", QPDFObjectHandle::newDictionary()); } auto embedded_files = names.getKey("/EmbeddedFiles"); if (!embedded_files.isDictionary()) { |