aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Dictionary.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-09-01 19:14:56 +0200
committerGitHub <noreply@github.com>2022-09-01 19:14:56 +0200
commitf8fd7d60e301b9b1bf4d705ce747e281c320487e (patch)
tree4aba6da08ae9d441ecf57eabefdc76185137d28d /libqpdf/QPDF_Dictionary.cc
parenta078202c1b5823f1c13a4c559619158054029e73 (diff)
parent805c1ad47968e33e1296af9a31492f6916ad9113 (diff)
downloadqpdf-f8fd7d60e301b9b1bf4d705ce747e281c320487e.tar.zst
Merge pull request #726 from m-holger/tidy3
Split QPDFObject into QPDFObject and QPDFValue
Diffstat (limited to 'libqpdf/QPDF_Dictionary.cc')
-rw-r--r--libqpdf/QPDF_Dictionary.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/libqpdf/QPDF_Dictionary.cc b/libqpdf/QPDF_Dictionary.cc
index 60b2339f..845bcad8 100644
--- a/libqpdf/QPDF_Dictionary.cc
+++ b/libqpdf/QPDF_Dictionary.cc
@@ -1,10 +1,10 @@
#include <qpdf/QPDF_Dictionary.hh>
#include <qpdf/QPDF_Name.hh>
-#include <qpdf/QPDF_Null.hh>
QPDF_Dictionary::QPDF_Dictionary(
std::map<std::string, QPDFObjectHandle> const& items) :
+ QPDFValue(::ot_dictionary, "dictionary"),
items(items)
{
}
@@ -58,18 +58,6 @@ QPDF_Dictionary::getJSON(int json_version)
return j;
}
-QPDFObject::object_type_e
-QPDF_Dictionary::getTypeCode() const
-{
- return QPDFObject::ot_dictionary;
-}
-
-char const*
-QPDF_Dictionary::getTypeName() const
-{
- return "dictionary";
-}
-
bool
QPDF_Dictionary::hasKey(std::string const& key)
{