diff options
Diffstat (limited to 'libqpdf/qpdf')
-rw-r--r-- | libqpdf/qpdf/QPDF_Dictionary.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh index 3354a256..bc025403 100644 --- a/libqpdf/qpdf/QPDF_Dictionary.hh +++ b/libqpdf/qpdf/QPDF_Dictionary.hh @@ -14,6 +14,8 @@ class QPDF_Dictionary: public QPDFValue virtual ~QPDF_Dictionary() = default; static std::shared_ptr<QPDFObject> create(std::map<std::string, QPDFObjectHandle> const& items); + static std::shared_ptr<QPDFObject> + create(std::map<std::string, QPDFObjectHandle>&& items); virtual std::shared_ptr<QPDFObject> copy(bool shallow = false); virtual std::string unparse(); virtual JSON getJSON(int json_version); @@ -35,6 +37,7 @@ class QPDF_Dictionary: public QPDFValue private: QPDF_Dictionary(std::map<std::string, QPDFObjectHandle> const& items); + QPDF_Dictionary(std::map<std::string, QPDFObjectHandle>&& items); std::map<std::string, QPDFObjectHandle> items; }; |