aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFParser.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-12-19 20:20:36 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-12-31 20:37:35 +0100
commitd67a54ae93640f784a03df5d07404df13b1b297a (patch)
treef0db36860634d0707143391b9bfbf1726dcf5914 /libqpdf/QPDFParser.cc
parent846504129f58a638ba481c4329187be8ebb20419 (diff)
downloadqpdf-d67a54ae93640f784a03df5d07404df13b1b297a.tar.zst
Tune parsing of dictionaries in QPDFParser::parse
Use move semantics for dictionary creation.
Diffstat (limited to 'libqpdf/QPDFParser.cc')
-rw-r--r--libqpdf/QPDFParser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDFParser.cc b/libqpdf/QPDFParser.cc
index 6a1525d4..fa2562ca 100644
--- a/libqpdf/QPDFParser.cc
+++ b/libqpdf/QPDFParser.cc
@@ -404,7 +404,7 @@ QPDFParser::parse(bool& empty, bool content_stream)
QPDFObjectHandle::newString(frame.contents_string);
dict["/Contents"].setParsedOffset(frame.contents_offset);
}
- object = QPDF_Dictionary::create(dict);
+ object = QPDF_Dictionary::create(std::move(dict));
setDescription(object, offset - 2);
// The `offset` points to the next of "<<". Set the rewind
// offset to point to the beginning of "<<". This has been